FLOAT TO WSTR - Specifing the size | developer.brewmp.com FLOAT TO WSTR - Specifing the size | developer.brewmp.com

Developer

FLOAT TO WSTR - Specifing the size

Forums:

i have a double which i tried to convert it to WSTR and display it. But the size of display is limited to 12 digits. How to do round of , using FLOATTOWSTR.

eg.

while converting value of 2/3 to string

the display should be 0.66666666667.

thanking u in advance

This would be trivial to implement using operations on the AECHAR array (expecially if you simply truncate rather than performing rounding).

This would be trivial to implement using operations on the AECHAR array (expecially if you simply truncate rather than performing rounding).

mohlendo wrote:This would be trivial to implement using operations on the AECHAR array (expecially if you simply truncate rather than performing rounding).
So then what do you do when it gives you a string like this one?
4.041795584e-005

mohlendo wrote:This would be trivial to implement using operations on the AECHAR array (expecially if you simply truncate rather than performing rounding).
So then what do you do when it gives you a string like this one?
4.041795584e-005