Commit ae0ebd8a authored by Alexey Botchkov's avatar Alexey Botchkov

Windows has no 'nearbyint' in libraries.

So removed.
parent eabcd620
......@@ -568,8 +568,7 @@ int gcalc_set_double(Gcalc_internal_coord *c, double d, double ext)
if ((sign= ds < 0))
ds= -ds;
c[0]= (gcalc_digit_t) (ds / (double) GCALC_DIG_BASE);
c[1]= (gcalc_digit_t) nearbyint(ds -
((double) c[0]) * (double) GCALC_DIG_BASE);
c[1]= (gcalc_digit_t) (ds - ((double) c[0]) * (double) GCALC_DIG_BASE);
if (c[1] >= GCALC_DIG_BASE)
{
c[1]= 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment