User Login
Name
Password
Site Contents
News
About
Download
Scripts
Tutorials
Register
Support
FAQ
Script Reference
New User


Contact Me
Xide
Online Scripting Reference

round

Purpose
Rounds a variable to the specified precision.

Syntax
round var {precision}

Notes
This command will round the value held in specified variable to a specified number of decimal places. It is only really useful when used in combination with the setPrecision command.

Example
setPrecision 2
setVar $x "500.52"
round $x 1

# this line will display: 500.5
echo $x



Return to item listing