integer math
In NXT-G 1.1, all numbers are integers, such as 27, 134, or −28. You can use positive or negative numbers, but no decimals. Working with integer math is fairly simple and comes naturally to most people. The two things you need to know when using integer math with NXT-G are the range of values supported and the way division works.
range of values
Most computers work with only a limited range of values. In NXT-G, the range of values you can use is from −2147483648 to 2147483647, which is slightly more than 2 billion for either positive or negative values. This is quite a large range and is more than sufficient for most purposes. As long ...
Get The Art of LEGO MINDSTORMS NXT-G Programming now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.