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