User Tools

Site Tools


4rpl:commands:round

Index
Math

round

Round (<-value <-decimalPlaces)

Description

Rounds off a number to the specified number of decimal places. This always returns a float, even when you are rounding to a whole number.

Examples

trace(round(PI 2)) #print '3.14'

Index

4rpl/commands/round.txt · Last modified: 2022/05/19 06:22 by Karsten75