rwaldron / proposal-math-extensions

ES Math Extensions
60 stars 7 forks source link

New rounding modes #28

Open Rudxain opened 2 years ago

Rudxain commented 2 years ago

I've read about this method and I found a roundingMode option, so I thought it may be a good idea to add at least 1 of these.

I personally would add expand, but tie-breaking modes seem more useful

Rudxain commented 2 years ago

Also related to #21, there should be methods dedicated to rounded division, specially because of BigInts (only valid if BigInt-Math gets to Stage4). BigInts can only be divided using truncated div. It would be very helpful if there were built-in methods for other div rounding modes