website logo
Navigate through spaces
Carrot reference
⌘K
Carrot reference
Getting started with Carrot
Premade Carrot filters
Operator precedence
Expression truthiness
Carrot fields
Basic Org Information
Compensation
Job Changes
Permissions
Personal
Recruiting
Structure
Time off
Data types
Elements of Carrot expressions
Functions
Operators
Keywords
Aggregators
Docs powered by archbee 
website logo

formatRound()

Converts a given value into a String, rounded to specific decimal place. Accepts Number, Money, or Percent datatypes.

Syntax

formatRound(number[, places][, locale])

  • number - the Number value to be rounded
  • places - the number of places of the returned value
  • locale -
  • Return type: String

Sample usage

formatRound(10.101010, 2) returns "10.10".

formatRound(base, 2) returns the value of base, rounded to two decimal places, as a String.

Supported data types

Input type

Return type

Logic

Number

String

The passed Number value is rounded to the specified decimal places, then converted to a String value.

Unsupported data types

Null

Unsupported data types return Null.

Updated 01 Feb 2023
Did this page help you?
Yes
No
UP NEXT
formatNumber()
Docs powered by archbee