When I use the function toLocaleString() on the value 9999999999999999 I’m expecting it to be output as 9,999,999,999,999,999 but it’s rounded up to 10,000,000,000,000,000.
I tried to pass in the minimumFractionDigits params, for example:
Interesting…I hadn’t considered I’d reached the max number of digits for it to be accurate. It’s also interesting that it seems to be accurate up to 16 digits if the last digit is lower than 9, as shown with the variable “z” below:
An alternative approach would be to include the formatting in the repeater, so instead of storing the integer 9999999999999999 which is then converted to a string, I’d store the the string 9,999,999,999,999,999. The issue with this is that I need to be able to sort the table column as a number, so the values in the repeater need to be stored as an integer.
Does this mean the summary point of this thread is: There’s no straight-forward way of displaying 16 digit integers in a repeater in Axure that can be formatted as a currency and is sortable as a number?