JS $numberformat
Michael Houlberg
michael at houlbergdevelopment.com
Wed Dec 4 20:24:45 EST 2013
Listers,
I'm working with the javascript client these days, still learning a lot. I'd like to get nicer looking numbers in remote form edit fields. The docs say this about the $numberformat property:
"The $numberformat property uses a single % format tag for the number followed by one or more elements, for example, the number format %.2F displays a number with 2 decimal places with a thousand separator…"
I'm not getting what I expect with this at all. Do I need to put quotes around this, or enter some other kind of function with this string inside it? Id' love to at least get a thousands separator. I already round all my calculations to 2 decimals. A dollar sign would be like icing. A percent format would be really cool too.
I just need two kinds of numbers right now, dollars and percents. I'd like to show numbers in these ways:
1260.20 as $1,260.20
.10 as 10%
Has anyone figured this out?
Thanks,
Michael Houlberg
Houlberg Development, LLC
More information about the omnisdev-en
mailing list