[Coco] Simple value inersion in Color Basic

Luis Antoniosi (CoCoDemus) retrocanada76 at gmail.com
Wed Jan 21 09:50:06 EST 2015


I miss the MOD. I need to use math instead wich is not practical.

A = B MOD 8

would be:

A = B-(INT(B / 8) * 8)

Luis Felipe Antoniosi



On Tue, Jan 20, 2015 at 3:42 PM, Allen Huffman <alsplace at pobox.com> wrote:

> Sure!
>
> XM=XM*-1
>
> If -1, becomes 1
> If 1, becomes -1
>
> I use that for my bouncing ball stuff.
>
>                 -- A
>
>
> --
> Coco mailing list
> Coco at maltedmedia.com
> https://pairlist5.pair.net/mailman/listinfo/coco
>


More information about the Coco mailing list