Bug? Bug when converting NumberFormat2 to Double

Filippo

Expert
Licensed User
Longtime User
Hi,

in B4a this code works without a problem, in B4i the app crashes.
Please fix the error.

B4X:
    Log("NumberFormat2=" & NumberFormat2(-0.0120000000000009, 1, 1, 1, False))
    Dim dbl As Double = NumberFormat2(-0.0120000000000009, 1, 1, 1, False)
    Log("dbl=" & dbl)
)

B4a-Log:
NumberFormat2=-0.0
dbl=-0

B4i-Log:
NumberFormat2=-0.0
Error occurred on line: 571 (Main)
Cannot parse: -0.0
 
Top