Julia Programming Language
Why 1-0.4 = 0.6 vs 1 - 1.4 = -0.399999999999
General Usage
giordano
May 19, 2025, 2:37pm
2
Also
PSA: floating-point arithmetic
5 Likes
show post in topic
Related topics
Topic
Replies
Views
Activity
Why is `1/5` not equal to `1//5`?
Internals & Design
15
1492
May 18, 2023
Rounding off error in simple calculations
Numerics
3
744
January 23, 2018
what is "1.2+0.21" in Julia?
General Usage
question
15
2091
April 10, 2019
Numerical precision
General Usage
question
,
precision
15
1620
March 31, 2022
Weird floating point vs rational behavior
General Usage
numerics
,
rationals
,
float
6
689
March 23, 2023