formatNumber output is incorrect

For some reason, my formatNumber() output is incorrect.
I have the following setup.

The basic trigger generates an output of 150000

The formatNumber() at the Google Sheet is set as follows

I expect my output to be 150000, 150,000.0, and 150,000.00
But I get this instead. What did I do wrong? Thanks

Welcome to the Make community!

There is probably formatting in Sheets itself, and Sheets has automatically converted the format for you.

To prevent this, select Unformatted “YES”:

Screenshot_2024-08-19_140834

Hope this helps! Let me know if there are any further questions or issues.

— @samliew


P.S.: Did you know, the concepts of about 70% of questions asked on this forum are already covered in the Make Academy. Investing some effort into it will save you lots of time and frustration using Make later!

Hi @samliew, thanks for your reply. I have tried “unformatted” , but my output is still wrong.

Screen Shot 2024-08-19 at 6.54.17 AM

I also tried parseNumber() with and without “unformatted”, the output is still wrong.
Screen Shot 2024-08-19 at 6.58.18 AM

Would you be able to get the right output on your end?

Sorry, I remembered incorrectly.

You should also set the input mode to RAW, in the advanced settings.

Screenshot_2024-08-19_230820

With the above settings, it works for me:

Screenshot_2024-08-19_230859

Output:

Screenshot_2024-08-19_230804

Hope this helps! Let me know if there are any further questions or issues.

— @samliew


P.S.: Did you know, the concepts of about 70% of questions asked on this forum are already covered in the Make Academy. Investing some effort into it will save you lots of time and frustration using Make later!

1 Like

Hi @samliew, thank you very much!
It only needs the “Raw” input to work on my end.
No need to use “Unformatted” or “parseNumber()”.
Thanks again

Screen Shot 2024-08-19 at 10.32.59 AM