[Coco] What? No MOD?!

Luis Antoniosi (CoCoDemus) retrocanada76 at gmail.com
Sun Dec 29 22:37:49 EST 2013


suppose you want X MOD Y

M=X-INT(X/Y)*Y


On Sun, Dec 29, 2013 at 10:17 PM, Bruce W. Calkins
<brucewcalkins at charter.net> wrote:
>
> ----- Original Message ----- From: "Mark J. Blair"
>>
>>
>> On Dec 29, 2013, at 18:57 , Arthur Flexser <flexser at fiu.edu> wrote:
>>>
>>> Considering that CoCo Basic lacks integer variables altogether, the
>>> lack of a MOD function doesn't seem all that astonishing...
>>
>>
>> doh
>> --
>> Mark J. Blair, NF6X
>
> ======================
>
> So, what will it take to write such a routine?
> Spoken in ignorance as I need to look up just what that function is.
> Bruce W. - KV4OE
>
> --
> Coco mailing list
> Coco at maltedmedia.com
> http://five.pairlist.net/mailman/listinfo/coco



-- 
Long live the CoCo



More information about the Coco mailing list