Józef Sokołowski

Results 23 comments of Józef Sokołowski

There is no point to have NaN value, when all operations which could return it throw exception instead. There is also no operation between two finite (big)decimals which could end...

I'm not entirely sure if it's a good idea, but there is another option (or rather a variant of Java-like approach) - use precision based on product of precisions of...

@littledan Even worse, according to these rules `1m / 2m === 0m`, even thought it have not only finite but also short decimal expansion. Maybe some compromise can be made,...

@domenic Actually splitting money is not a good use case for dividing. Let's assume you are trying to split 10$ between three people, you have to end up with one...

@MaxGraey AFAIK currently specification doesn't include even single (writable) constant like this and adding one would probably be pretty controversial. Also it sounds like a method for producing really nasty...

@mmis1000 It's called Rational, and it's discussed in issue #6

After some googling (correct me if I got something wrong): - **Java** - doesn't have literal for BigDecimal, uses `d` suffix for doubles; - **Python** - doesn't have literal for...

@ljharb isn't `5.0n` a syntax error? Still, I agree that it would be confusing.

@wheresrhys It would make `0x0x` a valid literal :)

It would be confusing not to, since BigInt supports them.