LEGO Engineering

| | | | | | | |
How do I fill a container with a floating point value (decimal) in ROBOLAB 2.9?


20th of April, 2010

(0 )

To fill a container with a decimal value:
  1. Drag a "Fill Container" block into your program.
  2. Select the wiring tool, and right click on the "Set container to" node. A menu should appear.
  3. Scroll down the menu and choose Create --> Constant. A blue wire and blue constant box with a "1" in it should appear. If youtry to type in a decimal, it will be truncated to an integer.
  4. To change this, right click within the blue constant box. A menu should appear.
  5. Scroll down the menu to Representation. Another menu box should appear.
  6. Select the DBL or Double Precision box.
  7. The blue box and wire should become orange to indicate floating point status. You should now be able to type in a decimal without it being truncated.





KAB
   :
   :
* :
* :
 


Home | About Us | Contact Us

© 2013 Center for Engineering Educational Outreach, Tufts University
© 2013 The LEGO Group. All rights reserved.