CString :: Format Format Double Accuracy is Integer Value

xiaoxiao2021-03-06  91

CString :: Format ("% d", xx); where XX can't be double precision, otherwise transforming errors, you should use CString :: Format ("% D", (long) xx);

example:

Double D = 22.443;

CString Str;

Str.format ("% D", D); converted Str = "1924145349", this is wrong.

转载请注明原文地址:https://www.9cbs.com/read-122838.html

New Post(0)