bug-apl
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-apl] "Largest integer" isnt' really largest?


From: Juergen Sauermann
Subject: Re: [Bug-apl] "Largest integer" isnt' really largest?
Date: Wed, 12 Mar 2014 13:24:09 +0100
User-agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130330 Thunderbird/17.0.5

Hi Elias,

thanks, fixed in SVN 162. In that range it can still happen that
"small" differences occur because an operation may be internally
performed as double and then converted to integer. The double has
48-1 bit precision and the integer 64-1 bit precision. It depends a little
on how the actual operation is implemented.

/// Jürgen


On 03/11/2014 04:32 PM, Elias Mårtenson wrote:
Running ⎕SYL shows the following:

      largest integer                         9223372036854775807

Trying to subtract one from this value gives a weird result:

      9223372036854775807-1
¯9223372036854775808

Regards,
Elias


reply via email to

[Prev in Thread] Current Thread [Next in Thread]