strValue.Format(_T("%f"),d); 试下改为strValue.Format(_T("%f"),d.Lo64);
解决方案 »
- win32 窗口如何全屏,ShowWindow(m_hWnd,SW_MAXIMIZE);后貌似顶端依然有系统栏目
- 获取网站数据接口
- Mscommcm控件串口编程
- AlphaBlend与TransparentBlt能组合使用
- ExitThread 与return
- 用vc+2005编译个窗口程序怎么多弹出一个dos窗口。
- 请教高手怎样对字符串进行排序?
- 直到现在还不会用VC设计一个界面出来,VC太高深了!大家来帮邦我好吗?
- 关于测试CPU实际频率的问题!急!!!在线等解答!
- SetWindowLong与GetWindowLong一问!!
- 旋转问题--将CDC画圆怎样旋转?再用BitBlt将绘制结果贴到屏幕上
- 问个windows字体渲染的问题
strValue.Format(_T("%lld"),d.Lo64);这里d是一个结构体,另外lo64是long long类型,%f是对浮点型的。
Represents a decimal data type that provides a sign and scale for a number (as in coordinates.)Decimal variables are stored as 96-bit (12-byte) unsigned integers scaled by a variable power of 10. The power of 10 scaling factor specifies the number of digits to the right of the decimal point, and ranges from 0 to 28.Syntax
JavaScriptC#C++F#JScriptVBView ColorizedCopy to Clipboardtypedef struct tagDEC {
USHORT wReserved;
union {
struct {
BYTE scale;
BYTE sign;
};
USHORT signscale;
};
ULONG Hi32;
union {
struct {
ULONG Lo32;
ULONG Mid32;
};
ULONGLONG Lo64;
};
} DECIMAL;typedef struct tagDEC {
USHORT wReserved;
union {
struct {
BYTE scale;
BYTE sign;
};
USHORT signscale;
};
ULONG Hi32;
union {
struct {
ULONG Lo32;
ULONG Mid32;
};
ULONGLONG Lo64;
};
} DECIMAL;Members
wReserved
Reserved.scale
The number of decimal places for the number. Valid values are from 0 to 28. So 12.345 is represented as 12345 with a scale of 3.sign
Indicates the sign; 0 for positive numbers or DECIMAL_NEG for negative numbers. So -1 is represented as 1 with the DECIMAL_NEG bit set.signscale
The sign and number of decimal places.Hi32
The high 32 bits of the number.Lo32
The low 32 bits of the number.Mid32
The middle 32 bits of the number.Lo64
The low 64 bits of the number. This is an _int64.