Bug? NumberFormat

Angelo Maradini

Member
Licensed User
Longtime User
With the latest version of B4i (or latest version of iOs)
the answer of NumberFormat has changed in the case of a number rounded to 0

NumberFormat(0.001, 0, 2) = ""
Why the function NumberFormat does not return "0.00" but "" ?
 

Angelo Maradini

Member
Licensed User
Longtime User
You are setting the minimum number of integers to 0 and the maximum number of decimal digits to 2. As Ilan wrote you should use NumberFormat2 in this case as you want to set the minimum number of decimal digits.
Thanks Erel
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…