Why do we use and configure FORMATENUMBERLOCALIZEDPATTERN function?

Also Mention the steps of configure it.

3 Likes

@Harshit, Please look into this query.

1 Like

Hi @Gitika_Verma we use this function to convert the number as per the different countries currency for example:-
If I have an API which is giving me a response in the form of number. If I want to show that number on the front end but let say in the form of Indian currency(1,00,000) then in that scenario we can use this function.
FORMATENUMBERLOCALIZEDPATTERN(number, pattern, localeId) function takes two mandatory parameters which are number and pattern and one is localeId which is non mandatory. In number we can provide either number or entity path which contains the amount which is to be converted and in pattern we have to write the specific pattern of the country in which we want to convert the amount. Like in case of Indian currency we can write (#, ##, ###).

Output:-

4 Likes