I am curious if anyone has any tricks to formatting a number (or number as string) to currency, so with commas and 2 decimal places, natively in a bot. I am working with a customer in a locked down environment that does not want to install any Bot Store packages, and both the python and javascript packages are woefully inadequate as they neither allow me to pass in a variable or get a variable as a result.
I have mocked up a couple of working methods, one using PowerShell to format and then write out to a temp file and another splitting the number on the decimal and then working out the commas manually. But, honestly, both are extremely ugly and nothing I’d be proud to share with the customer. Not to mention, I would like to avoid having to write to temp files if possible.