Round Decimal Places

Round a numerical value to a specified number of decimal places.

Other rounding options are Round (closest integer), Round Up, and Round Down.

Input

Field Definition Type Required
number Numerical value that's the target of this operation. Number TRUE
decimal places Number of decimal places to which the numerical value is rounded. Number TRUE

Output

Field Definition Type
output Calculated rounded number. Number

Example

  • If number is 10.33333333 and decimal places is 2, then rounded is 10.33

  • If number is 10.66666666 and decimal places is 1, then rounded is 10.7

Related topics

Functions in Workflows

About the elements of Okta Workflows