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

formatNumber()

Converts a given value of type Number into a String.

Syntax

formatNumber(number[, format][, locale])

  • number - the Number value to be converted to a String.
  • format -
  • locale -
  • Return type: String

Sample usage

formatNumber(20) returns 20 as a String.

Supported data types

Input type

Return type

Logic

Number

String

If a Number value is passed, it's value will returned as a String.

Unsupported data types

Null

Unsupported data types return Null.

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