0% found this document useful (0 votes)
170 views1 page

Power Automate FormatNumber Guide

The Power Automate formatNumber function formats numbers as strings based on a specified format and locale. It takes in a number, format string, and optional locale. The format controls how the number is displayed, such as currency, leading zeros, or other formats. Examples demonstrate formatting a number as currency in different styles or with leading zeros.

Uploaded by

Orange DEV
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
170 views1 page

Power Automate FormatNumber Guide

The Power Automate formatNumber function formats numbers as strings based on a specified format and locale. It takes in a number, format string, and optional locale. The format controls how the number is displayed, such as currency, leading zeros, or other formats. Examples demonstrate formatting a number as currency in different styles or with leading zeros.

Uploaded by

Orange DEV
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

PowerAutomate

vendredi 20 janvier 2023 20:19

Split(body('Create_CSV_table'),decodeUriComponent('%0D%0A')) is an Array
Power Automate FormatNumber Function

Syntax
formatNumber(number :number,format:string,locale?:string)
Copy
Parameters

• number (required): The number that needs to be formatted.


• format (required): The format that should be applied to format the number.
• locale (optional): The locale that is used to format the number.
Return value

• Returns the formatted number as a string that is formatted based on format and
locale.

Examples: Format number as currency

Format Expression Number Result


C formatNumber(12345,’C’) 12345 $12,345.00
C0 formatNumber(12345,’C0′) 12345 $12,345
C1 formatNumber(12345,’C1′) 12345 $12,345.0
C2 formatNumber(12345,’C2′) 12345 $12,345.00
C3 formatNumber(12345,’C3′) 12345 $12,345.000
C with german locale formatNumber(12345,’C’,’de-de’) 12345 12.345,00

Examples: Format number with leading zeros

Format Expression Number Result


D formatNumber(123,’D’) 123 123
D3 formatNumber(123,’D3′) 123 123
D4 formatNumber(123,’D4′) 123 0123
D6 formatNumber(123,’D6′) 123 000123
D8 formatNumber(123,’D8′) 123 00000123

À partir de l’adresse <https://zeitgeistcode.com/power-automate-format-number/>

Nouvelle section 1 Page 1

You might also like