Razenpok / BreakInfinity.cs

Double replacement for numbers that go over 1e308
MIT License
212 stars 33 forks source link

Max value of BreakInfinity.cs is actually 1e(9e18) rather than 1e(9e15) #10

Open Revolyze opened 4 years ago

Revolyze commented 4 years ago

Not really a big issue just more of an FYI since the readme only talks about the max of 1e(9e15) despite it going higher. The MAX_SAFE_INTEGER for JavaScript is 9,007,199,254,740,991, but in C#, it uses a long, 9,223,372,036,854,775,807 which just has 3 more digits. This means the max is around 9.99e9,223,372,036,854,775,806 (1 exponent below from infinity) or more simply, 1e(9e18)

sanraj786 commented 3 years ago

Ok