Quote:
Originally Posted by ownedbycats
Arithmetic - how do I apply a format to the results?
e.g. program: divide($$#purchasecost, 1.15) returns 7.9913043478260875 when I just need 7.99. ({0:,.2f})
|
Use format_number(x, '.2f') or perhaps finish_formatting() if you want a prefix and/or a suffix.
Also, $$#purchasecost/1.15 is faster than using the divide() function.