Just saw this video about number formatting in JS and wondering if we have a similar library. I could not find something similar with a search for "number format," although this module might have the functionality (not sure because not enough info in post).
java has something similar which could be leveraged
into a library. but for a giggle, you can use the
javascript formatter in a webview.
the whole thing could be buried in a subroutine that
returned the formatted number as a string. in the
attached example, i didn't bury it, and i simply posted
the formatted number it to the log, but it's easy
to capture it into a variable.
B4XFormatter is an alternative to NumberFormat / NumberFormat2 keywords. It is implemented in B4X and it is cross platform. There are two types in the library: B4XFormatter - The main class. B4XFormatData - A type with various configurable fields. The formatter holds a list of format data...