MOD function does not work! So be warned!

Dar Scott dsc at swcp.com
Fri Mar 29 01:06:01 EST 2002


On Thursday, March 28, 2002, at 10:15 PM, David Vaughan wrote:

> Mod, incidentally, is (or was) intended as an integer function 
> rather than one for real (floating point) numbers.

The doc says nothing about this.

I'm disappointed that we are reduced to talking about int and real, 
programmer jargon.

Mathematically, depending on usage, mod is defined over real (in 
the math sense).


>> The implication is that applications that need a decimal point 
>> need to have lots of special code.
>
> Not really. Treat it as one of string, integer or floating point 
> (s, m, e) and BCD or "binary point" can take care of themselves.

I don't understand.  I don't know of types in Revolution (except 
string vs array).  Suppose I want to keep up with money.  If I 
understand the implications of Ian's experiment, my books might not 
balance.

Dar Scott





More information about the use-livecode mailing list