diff options
Diffstat (limited to 'src/floatfns.c')
| -rw-r--r-- | src/floatfns.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/floatfns.c b/src/floatfns.c index 94da22a3ba7..9ae810669ef 100644 --- a/src/floatfns.c +++ b/src/floatfns.c | |||
| @@ -534,10 +534,7 @@ Rounds the value toward zero. */) | |||
| 534 | (Lisp_Object arg) | 534 | (Lisp_Object arg) |
| 535 | { | 535 | { |
| 536 | double d = extract_float (arg); | 536 | double d = extract_float (arg); |
| 537 | if (d >= 0.0) | 537 | d = emacs_trunc (d); |
| 538 | d = floor (d); | ||
| 539 | else | ||
| 540 | d = ceil (d); | ||
| 541 | return make_float (d); | 538 | return make_float (d); |
| 542 | } | 539 | } |
| 543 | 540 | ||