This project is closed and read-only.
Backport #5272 ยป numeric.c.patch
| numeric.c | ||
|---|---|---|
|
}
|
||
|
number = RFLOAT_VALUE(num);
|
||
|
if (ndigits == 0) {
|
||
|
return dbl2ival(number);
|
||
|
return dbl2ival(round(number));
|
||
|
}
|
||
|
frexp(number, &binexp);
|
||