Y
Yoavo
Hi,
I have a double value and I need to convert it to a string by leaving only 4
figits after the decimal point.
I do not want the value to be rounded.
For example if my input is:
double aa = 813.1234567
I want that my output string will be
"813.1234" (and not "813.1235").
I tried:
string MyStr = string.Format("{0:0.0000}, aa);
But this give me a rounded result.
Please advise,
Yoav.
I have a double value and I need to convert it to a string by leaving only 4
figits after the decimal point.
I do not want the value to be rounded.
For example if my input is:
double aa = 813.1234567
I want that my output string will be
"813.1234" (and not "813.1235").
I tried:
string MyStr = string.Format("{0:0.0000}, aa);
But this give me a rounded result.
Please advise,
Yoav.