Page 1 of 1

Modulo Block for NXT version 2.0

Posted: 24 Sep 2012, 22:12
by gavilanp
With floating point math in the NXT software, it's no longer possible to compute modulo (no complaint about floating point ;) ).
Is there any available option for it, or an integer block which could then be used in a myblock to compute modulo.

thanks.

Re: Modulo Block for NXT version 2.0

Posted: 25 Sep 2012, 11:50
by h-g-t
Don't know of any custom blocks, but I think all you have to do is carry out the division then subtract the original number to get the decimal bit.

Re: Modulo Block for NXT version 2.0

Posted: 25 Sep 2012, 12:48
by hassenplug
You may want to look into how to install the integer blocks.

http://www.teamhassenplug.org/NXT/NXTGAdditions.html

Steve

Re: Modulo Block for NXT version 2.0

Posted: 26 Sep 2012, 14:39
by gavilanp
Steve, i put the integer math block on the palette and now i can compute modulo.

Thanks for pointing that to me, somehow I missed that although I had visited that page in my original search.