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

formatPercent()

Converts a given value of type Percent into a String.

Syntax

formatPercent(percent[, format][, locale])

  • percent - the Percent value to be converted to a String
  • places - the number of places of the returned value
  • locale -
  • Return type: String

Sample usage

formatPercent(.5) returns 50% as a String.

Supported data types

Input type

Return type

Logic

Percent

String

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

Unsupported data types

Null

Unsupported data types return Null.



Updated 03 May 2023
Did this page help you?
Yes
No
PREVIOUS
formatNumber()
NEXT
formatDate()
Docs powered by archbee 
TABLE OF CONTENTS
Syntax
Sample usage
Supported data types