Bug? NUMBERFORMAT error

moore_it

Well-Known Member
Licensed User
Longtime User
The NumberFormat statement in versione 8.50 wrong.

for example : FormatNumber(150,5,0) = 00,150
 

moore_it

Well-Known Member
Licensed User
Longtime User
are you sure ?

for me the right resut is 00150

NumberFormat(Number as Double,MinimumInteger As Int,MaximumFractions As Int) As String
Example : NumberFormat(1,3,0) = '001'
 

klaus

Expert
Licensed User
Longtime User
It is correct.
NumberFormat converts a Double into a String with "," as the thousand separator by default.
To get the result you expect you should use:
NumberFormat2(150, 5, 0, 0, False)
 
Top