Bug in comparing very small numbers

Roman Chijner shared this question 1 year ago
Answered

Hi, it is a Bug in comparing very small numbers

https://www.geogebra.org/m/rffqsk67

Comments (3)

photo
1

Hi I confirm with 5.0.518.0-d even with :

a = (10^(-9) < 10^(-8))

photo
1

Sorry, that's deliberate (to avoid problems with rounding after calculations). It's not a simple problem: https://docs.oracle.com/cd/...


Merry Christmas!

photo
1

Thanks, I undenstand. For my task, workaround I solve this problem:

instead ε1 = 10^(-14); a = If(ε1 < 10⁻¹³, true, false)→false

replace a1 = If(ε1 * 10¹³ < 1, true, false)→true!!!!

There is a problem with the representation of small numbers between ggB and the script!

https://help.geogebra.org/topic/with-java-script-problems

https://www.geogebra.org/ma...

photo
© 2020 International GeoGebra Institute