X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/ed531c37b5bfda999e40904fe5b7fb248ad9e3a3..refs/heads/b-3.4.1:/t/form/round_amount.t diff --git a/t/form/round_amount.t b/t/form/round_amount.t index d9c8edbb7..18553c0f4 100644 --- a/t/form/round_amount.t +++ b/t/form/round_amount.t @@ -57,6 +57,8 @@ is($::form->round_amount(198.90 * 0.75, 2), '149.18', '198.90 * 0.75 @ 2'); is($::form->round_amount(198.90 * 0.75, 1), '149.2', '198.90 * 0.75 @ 1'); is($::form->round_amount(198.90 * 0.75, 0), '149', '198.90 * 0.75 @ 0'); +is($::form->round_amount(19610.975, 2), '19610.98', '19610.975 @ 2'); + # Negative values is($::form->round_amount(-1.05, 2), '-1.05', '-1.05 @ 2'); is($::form->round_amount(-1.05, 1), '-1.1', '-1.05 @ 1');