royNiladri / js-big-decimal

Work with large numbers on the client side with high precision.
https://www.npmjs.com/package/js-big-decimal
MIT License
156 stars 28 forks source link

Issue in Round method #23

Closed harishkesavulu24 closed 4 years ago

harishkesavulu24 commented 5 years ago

Hai there,

Could not able to round for the number 0.5 with precision 0 and Rounding Mode HALF_UP

Eg: var num = new bigDecimal("0.5"); var numRound1 = num.round(0, bigDecimal.RoundingModes.HALF_UP); Expected output:1 but returning 0