1
0
mirror of https://github.com/MikeMcl/decimal.js.git synced 2026-09-23 20:35:04 +00:00

Bugfix: #26 clone

This commit is contained in:
Michael Mclaughlin
2016-02-14 21:13:04 +00:00
parent 948d368527
commit c512eb9a5a
3 changed files with 6 additions and 14 deletions

View File

@@ -3,7 +3,7 @@ if (typeof T === 'undefined') require('../setup');
T('trunc', function () {
function t(expected, n) {
T.assertEqual(expected, Decimal.trunc(n).valueOf());
T.assertEqual(expected, new Decimal(n).trunc().valueOf());
}
Decimal.config({