Apple Basic

From: Aaron Christopher Finney <aaron_at_prinsol.com>
Date: Sun Mar 1 12:50:00 1998

I don't remember - is there an INT function in Apple basic? If so, it
would be easy to do (I only used 4 variables for clarity):

A = the number
B = the number you're dividing by
C = the result of division
D = the modulus

C = INT(A/B)
D = A - C * B

Viola! D is the result of A mod B!


On Sat, 28 Feb 1998, R. Stricklin (kjaeros) wrote:

>
> Eh, heh.
>
> So how do I get a modulus in Apple basic? The answer is not 'MOD' or '%'.
>
> ok
> r.
>
Received on Sun Mar 01 1998 - 12:50:00 GMT

This archive was generated by hypermail 2.3.0 : Fri Oct 10 2014 - 23:31:07 BST