Well, you are probably right. I expected them to print the same, because
*mathematically* they are the same value, and because I was used to it.

Sorry for the noise.

On Friday, December 19, 2014 4:23:57 PM UTC+1, Tamas Papp wrote:
>
> I don't know why you expect them to print the same, when they are not 
> the same value. 
>
> -0.0 is a Float64, so IEEE arithmetic applies and sqrt(-0.0) is -0.0. 
>
> sqrt(-0) is equal to sqrt(0), because 0 is an Int64 so it is negated 
> first. 
>
> Best, 
>
> Tamas 
>
>
>

Reply via email to