On Thu, Nov 15, 2018 at 11:46 AM Erik Bray wrote:
>
> On Thu, Nov 15, 2018 at 8:39 AM Emmanuel Charpentier
> wrote:
> >
> >
> >
> > Le mercredi 14 novembre 2018 12:29:36 UTC+1, Erik Bray a écrit :
> >
> >>
> >> However, one thing I do find surprising about the global sqrt
> >> function, which is
On Thu, Nov 15, 2018 at 8:39 AM Emmanuel Charpentier
wrote:
>
>
>
> Le mercredi 14 novembre 2018 12:29:36 UTC+1, Erik Bray a écrit :
>
>>
>> However, one thing I do find surprising about the global sqrt
>> function, which is different from some other global functions (I
>> think, needlessly) is
On Wed, Nov 14, 2018 at 10:32 AM Bruno Grenet wrote:
>
> As far as I can tell, this behavior is not new. The (default) choice
> made for the square root of an integer is to return an exact answer
> rather than an approximation. Thus sqrt(9) = 3, sqrt(10) = sqrt(10) and
> sqrt(12) = 2*sqrt(3). On
As far as I can tell, this behavior is not new. The (default) choice
made for the square root of an integer is to return an exact answer
rather than an approximation. Thus sqrt(9) = 3, sqrt(10) = sqrt(10) and
sqrt(12) = 2*sqrt(3). On the other hand, a floating point number is
viewed as an
HI,
I am calculating a square root sqrt(9)=3
But at 10 and over I got this answer sqrt(10)= sqrt(10) except
sqrt(16)=4 when it's a right square
but sqrt(10.0)=3.16... Is it a normal answer ?
sqrt(16)=4 works
Any explaination ?
Regards
Henri
--
You received this message because you are