website logo
Navigate through spaces
ChartHop documentation
⌘K
ChartHop Help Center
Getting around in ChartHop
ChartHop for Employees
Implementing ChartHop
ChartHop for Administrators
Carrot reference
ChartHop for Developers
Partners
Release notes
Resources
Docs powered by
Archbee
website logo
Carrot reference
...
Elements of Carrot expressions
Functions

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 03 May 2023
Did this page help you?
PREVIOUS
formatMoney()
NEXT
formatNumber()
Docs powered by
Archbee
TABLE OF CONTENTS
Syntax
Sample usage
Supported data types
Docs powered by
Archbee