1
0
mirror of https://github.com/MikeMcl/decimal.js.git synced 2024-09-28 22:40:48 +00:00

Fixes pre-existing test to successfully round up

This commit is contained in:
Lucia Velasco 2018-03-02 22:11:22 +00:00
parent 4949869b5e
commit 2c3198d555

View File

@ -156,7 +156,7 @@ T('toNearest', function () {
Decimal.rounding = 1; Decimal.rounding = 1;
t('83105511539', '83105511539.5', void 0, 11); t('83105511539', '83105511539.5', void 0, 11);
t('3847560', '3847561.00000749', 10, 11, 0); t('3847570', '3847561.00000749', 10, 11, 0);
t('42840000000000000', '42835000000000001', '1e+13', 2, 0); t('42840000000000000', '42835000000000001', '1e+13', 2, 0);
t('42840000000000000', '42835000000000001', '1e+13', 2, 1); t('42840000000000000', '42835000000000001', '1e+13', 2, 1);
t('42840000000000000', '42835000000000000.0002', '1e+13', 200, 0); t('42840000000000000', '42835000000000000.0002', '1e+13', 200, 0);