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

block changes

All the blocks that deal primarily with numbers, such as the Math, Compare, and Range blocks, have been updated to work with floating-point numbers. Beyond those changes, a few blocks have been modified in ways that may be less obvious. Here is a summary of those changes:

  • The Math block supports square root and absolute value operations.

  • The Number to Text block will show the number rounded the number to two places.

  • The File Access block will round a number to two places before writing it to a file.

  • The Switch block will round an input value to the nearest integer before matching it against the list of conditions. Even though floating-point numbers are used in NXT-G 2.0, the list of conditions still only supports integer values.

  • The Rotation ...

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