Julia does not try to hide the complexities of floating-point 
representations, so this is expected. There's a brief section in the manual 
[1] which lists some references on this topic--I personally recommend 
reading "What Every Computer Scientist Should Know About Floating-Point 
Arithmetic 
<http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.102.244&rep=rep1&type=pdf>",
 
but the other references are good, too.

[1] 
http://julia.readthedocs.org/en/latest/manual/integers-and-floating-point-numbers/#background-and-references
 
<http://julia.readthedocs.org/en/latest/manual/integers-and-floating-point-numbers/#background-and-references>

On Thursday, March 12, 2015 at 3:40:45 PM UTC-5, Hanrong Chen wrote:
>
> julia> 1-0.8
> 0.19999999999999996
>
> Is this a bug?
>

Reply via email to