is($::form->format_amount($config, 1, -2), '1.00', 'negative places 3');
# bugs amd edge cases
+$config->{numberformat} = '1.000,00';
is($::form->format_amount({ numberformat => '1.000,00' }, 0.00005), '0,00005', 'messing with small numbers and no precision');
is($::form->format_amount({ numberformat => '1.000,00' }, undef), '0', 'undef');
is($::form->format_amount($config, 1.00), '1', 'autotrim to 0 places');
+is($::form->format_amount($config, 10), '10', 'autotrim does not harm integers');
+is($::form->format_amount($config, 10, 2), '10,00' , 'autotrim does not harm integers 2');
+is($::form->format_amount($config, 10, -2), '10,00' , 'autotrim does not harm integers 3');
+is($::form->format_amount($config, 10, 0), '10', 'autotrim does not harm integers 4');
+
+is($::form->format_amount($config, 0, 0), '0' , 'trivial zero');
+is($::form->format_amount($config, -0.002, 2), '0,00' , 'negative zero');
+is($::form->format_amount($config, -0.002, 3), '-0,002' , 'negative zero');
# dash stuff