Skip to content
Snippets Groups Projects
Commit b81e4138 authored by deuce's avatar deuce
Browse files

MSVCs long double does *not* have 19 significant digits which is required

to be able to accurately cast a long long int to a long double.  Replace:
(long double)x/y
WITH
(x/y)+((long double)(x%y)/y)

Can everyone look for a problem with assuming those two are interchangeable
with the second being more accurate?
parent 5eeca829
Branches
Tags
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment