德语数字格式 [英] German number format

查看:159
本文介绍了德语数字格式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我是本国语言支持的新手.如何以德语格式(3.146,21)显示数字3146.21?

谢谢

Hi,

I am a newbie of National language support. How to show the number 3146.21 in German format (3.146,21) ?

Thanks

double f=3146.21;
CString c;
c.Format("%.2lf", f);

推荐答案

您将需要使用de-DE文化信息.

浏览本文 [
You will need to use the de-DE culture info.

Go through this article[^].


看看此CodeProject的文章 [
Have a look at this CodeProject''s article[^].
:)


目标之一是编写一部分功能Format的代码.将点和昏迷放在正确的位置很简单.
One of the desision is to write part of code of function Format. It is simple to put point and comas in the right place.


这篇关于德语数字格式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆