1. Home
  2. Docs
  3. Flexie CRM Methods
  4. numberFormat method

numberFormat method

Method

numberFormatFormat a number with variable number of digits after the decimal point.

Description

Minimum number of  arguments for this method is two. The first argument is the number to be formatted. The second argument is the number of  digits after the decimal point.

Structure of the method:

numberFormat(number, decimals)

Parameters

number— The number to be formatted

decimals — The default number of digits after the decimal point is 0

Examples

In the example below, we generate a short link and then we are sending it by email to a lead.

We can create workflows to listen to the click of this smart link and choose actions like redirect to another link.

//Find all cases for a specific contact. 
Hello {{first_name}},

Your balance is: {{numberFormat(122222, decimals)}}

//Output: 122,222.00

To stay updated with the latest features, news and how-to articles and videos, please join our group on Facebook, Flexie CRM Academy and subscribe to our YouTube channel Flexie CRM.

How can we help?