B4J Question IF query error

strupp01

Active Member
Licensed User
Longtime User
Why is the if query in line 96 acknowledged positively, although 'Ausgabe_Nr' is 0.4 and not larger?
 

Attachments

  • B4J_Test.zip
    84.2 KB · Views: 201

EnriqueGonzalez

Well-Known Member
Licensed User
Longtime User
This is the correction:

B4X:
Dim Ausgabe_Nr As Double ' not as float

it is not a bug, its just math
https://stackoverflow.com/questions/6952368/why-does-java-shows-extra-values-after-float-calculation

as you see in the image, it adds some digits at the end. (log)

upload_2017-5-26_15-14-53.png
 
Upvote 0
Top