OK, thanks - the website is really useful. I come from R, where the result 
is presented as 1.2 – I guess Julia is more low-level in its interface. 
(BTW I did of course search the forums before posting, but most have missed 
the question).

Den torsdag den 3. september 2015 kl. 09.45.18 UTC+2 skrev Michael 
Borregaard:
>
> Hi,
> in the Julia documentation, I fell over this strange behaviour:
>
> julia> 1.1 + 0.1
> 1.2000000000000002
>
> I understand that this may make sense in the context of how floating 
> numbers are implemented inside Julia - but I cannot think of a single 
> situation in which the user would want this behaviour.
> Can someone explain what is going on, and why this is not a bug?
>
> Thanks,
> Michael
>

Reply via email to