MOD function does not work! So be warned!
Michael D Mays
michael at GreppyDreppies.com
Sun Apr 7 09:27:01 EDT 2002
Actually the answer to my question is that there is no such thing as an
integer in xTalk. Any string which could be a number which seems to act like
an integer is a binary real which has an exact decimal representation during
computation. You can't define a range for an integer if your language does
not have the concept of type.
What I was trying to say is that an integer to a lot of people is a whole
number in the range of +/- infinity. If they add zero to a large integer and
the result is another large integer they are upset. Just like those people
who summed ten tenths and didn't get one.
This isn't a large problem in the since that most xTalk programmers aren't
going to be writing programs where they will encounter these situations.
The large problem I see is if an xTalk were ones first language one would be
ignorant of computer numerics.
michael
Rob Cozens of rcozens at pon.net wrote the following on 4/6/02 10:32 AM
>> One problem is what is an integer?
>>
>
> I would define an integer as any non-decimal number within the range
> of numbers supported by the interpreter.
More information about the use-livecode
mailing list