Skip to Main Content
The Art of LEGO MINDSTORMS NXT-G Programming
book

The Art of LEGO MINDSTORMS NXT-G Programming

by Terry Griffin
August 2010
Intermediate to advanced content levelIntermediate to advanced
288 pages
13h 21m
English
No Starch Press
Content preview from The Art of LEGO MINDSTORMS NXT-G Programming

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 ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

The Art of LEGO MINDSTORMS EV3 Programming (Full Color)

The Art of LEGO MINDSTORMS EV3 Programming (Full Color)

Terry Griffin

Publisher Resources

ISBN: 9781593272180Errata