metaeducation / rebol-issues

6 stars 1 forks source link

some limits testing on TIME! values #958

Open rebolbot opened 15 years ago

rebolbot commented 15 years ago

Submitted by: meijeru

guessing that time is stored as an integer number of seconds (32 bits signed quantity) and a separate fraction, I executed the code below
>> make time! (2 ** 32) - 1
== -0:00:01 ; so far so good
>> make time! (2 ** 32) - 0.99
== -0:00:01.-10000228 ; oops
>> make time! (2 ** 32) - 1.01
== -0:00:02. ; does not seem quite right either

CC - Data [ Version: alpha 58 Type: Bug Platform: All Category: n/a Reproduce: Always Fixed-in:alpha 67 ]

rebolbot commented 15 years ago

Submitted by: Carl

These cases will now throw range errors. However, in general, there are still various problems with TIME ranges... and the datatype needs to be revised in a bigger way to fix them.