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:
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user