Round()

<< Click to Display Table of Contents >>

Navigation:  Explain™ Control Language  > Library Routines > Mathematical functions >

Round()

Description

Round a REAL value to a known number of decimal places.

 

Round (3.0149, 2) → 3.01 (rounded to 2 places)

Round (–1.06, 1) → –1.1 (rounded to 1 place)

Round (10.51, 0) → 11 (rounded to 0 places)

 

Type

REGULAR FUNCTION

 

Usage

Rounded = Round(Number, Places)

 

Number

REAL

The Number to be rounded.

Places

REAL

The number of decimal Places desired.

Rounded

INDEX

The rounded value.