PDA

View Full Version : Format Real Numbers



Jeremy Kopicz
03-11-2011, 11:25 AM
The attached blocks allow you to format real numbers to specific decimal places. This comes in handy when writing files for data collection.

SET_PRECISION rounds the real number to the number of decimal places specified.

SET_TRUNC truncates the real number to the number of decimal places specified.

Range for precision is set at -5 to 4 (-5 = hundred thousands, 4 = 4 decimal places)