Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Table plus
applyColStyleToCelltrue
heading0
columnTypess,s,s,s
multiplefalse
columnAttributesstyle="background:#e5e7ea;font-weight:bold,,style="background:#e5e7ea;font-weight:bold,
enableSortingfalse

Syntax

round(number, digits)

Package

Alias

Pkg Usage

Description

Excerpt
hiddentrue
Rounds a number to a specified number of digits.

Rounds a number to a specified number of digits.

Parameters

Table plus
applyColStyleToCelltrue
columnTypess,s,s,s
heading0
multiplefalse
enableSortingfalse

Parameter name

Type

Required

Description

number

Number

Yes

Number you want to round.

digits

Number

Yes

Number of digits you want to round the number argument to.

Return Type

Number

Example

Code Block
languagejs
number a = round(2.36547, 2);
print("a= " + a);

Prints: a= 2.37;

See also

Filter by label (Content by label)
showLabelsfalse
max25
showSpacefalse
cqllabel = "math_routine" and space = currentSpace ( )
labelsarray_routines