J
Jonas
Hi guys,
does anybody know how can I reach the following effect.
I want to format a floating point number like 45,233 in the way that only
two digits after the comma are show, but they should be there even when the
number in an integer value like 4,00.
So I tried to do it with format(...) but I get back a string.
Type casting the result of format cuts the digits after the comma or rather
distroys the format.
F.e.: 5,6 -> CSng(format(5,67,"#,##0.00")) -> 5,6
but I want to have all my numbers with two digits after the comma as a
number.
Like
4,3 -> 4,30
123 -> 123,00
How can I do that ?
Thanks in advance.
Regards
Jonas
does anybody know how can I reach the following effect.
I want to format a floating point number like 45,233 in the way that only
two digits after the comma are show, but they should be there even when the
number in an integer value like 4,00.
So I tried to do it with format(...) but I get back a string.
Type casting the result of format cuts the digits after the comma or rather
distroys the format.
F.e.: 5,6 -> CSng(format(5,67,"#,##0.00")) -> 5,6
but I want to have all my numbers with two digits after the comma as a
number.
Like
4,3 -> 4,30
123 -> 123,00
How can I do that ?
Thanks in advance.
Regards
Jonas