floating-point math

Because NXT-G 2.0 uses floating-point math, it avoids the problems associated with integer math described in the previous section. For many programs, this makes using numbers much easier; you just work with them the same way you would if you were using a calculator. However, floating-point numbers do have some limitations, and their effects are not always easy to understand.

range

The range of values that you can use with floating point numbers is quite large. You can have positive or negative values larger than 1 × 1030, the number 1 followed by 30 zeros. You can also have values smaller than 1 × 10-31, which has 30 zeros to ...

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.