Test (Sandbox)  

Bludwyng's Sandbox

{{#arith:operand_1|operator|operand_2|minimum_total_zero-padded_CHARACTERS_including_decimal_point|digits_after_decimal|1_here_to_show_debug_if_admin}}

{{#arith:.0399|*|299||2}}

11.93

{{#arith:.0399|*|299|1|2}}

11.93

{{#arith:.0399|*|299|2|2}}

2 total characters at minimum will be displayed. 2 digits after the decimal will be displayed.

11.93

{{#arith:.0399|*|299|7|2}}

7 total characters at minimum will be displayed. 2 digits after the decimal will be displayed.

0011.93

{{#arith:.0399|*|299|7|2|1}}

7 total characters at minimum will be displayed. 2 digits after the decimal will be displayed. Debug will be displayed if admin

0011.93

lol divbyzero;

0000.04

lol moduluszero

OK 0003.00

This page last modified 2010-04-25 15:23:37.