precision1.0

precision number places

Reports number rounded to places decimal places.

If places is negative, the rounding takes place to the left of the decimal point.

show precision 1.23456789 3
=> 1.235
show precision 3834 -3
=> 4000

See also round, ceiling, floor.

Take me to the full NetLogo Dictionary