2 ms·
Yes, but the Julia REPL produces 2.0 as an answer and casting both these to BigInt doesn't work either.
by sgt101 8y ago
Yes, but the Julia REPL produces 2.0 as an answer and casting both these to BigInt doesn't work either.
- twtw 8y agoThus 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.
- sgt101 8y agoAgree - but it's a shame, fundamentally what ever the reason this is really, really egregious behaviour