Hacker News new | past | comments | ask | show | jobs | submit login

Yes, but the Julia REPL produces 2.0 as an answer and casting both these to BigInt doesn't work either.



Thus my second paragraph. You have to opt in to use other formats.

Casting to bigint doesn't work because the problem occurs when converting the decimal constant in the source to floating point. You would have to convince the parser to parse the constant as something besides a float.


Agree - but it's a shame, fundamentally what ever the reason this is really, really egregious behaviour




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: