Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: SKIP with *very* large values

From: nitsch-lists:netcologne at: 17-May-2002 21:59

Am Freitag, 17. Mai 2002 07:59 schrieb Carl Read:
> On 16-May-02, Volker Nitsch wrote: > > this large numbers are automatically converted to decimals. > > could be skip does not like that? > > > >>> skip [1 2 3] 2 > > > > == [3] > > > >>> skip [1 2 3] 2.0 > > > > == [1 2 3] > > bug, to feedback? > > Definately bugged... > > >> skip [1 2 3] 2 > > == [3] > > >> skip [1 2 3] 2.0 > > == [] > > That's with Amiga View. >
looks like skip uses the raw memory content of the decimal as an integer. the decimal encoding is different across plattforms (today usually ieee, but amiga?). there is the exponent ("binary decimal point") mixed with the mantissa (the "integer" part). if one accesses a float as integer in c for example it looks pretty strange. Hmm, could one of the "patch function argument gurus" fix this with an integer! - restriction until a new release? ;)
> Will you report it Gregg?
greetings Volker