Don't use exact-floor in cast-string-int.

This commit is contained in:
Matus Tejiscak 2020-04-14 21:38:45 +02:00
parent c3b6b130fd
commit 41ef3fdd2a
3 changed files with 3 additions and 3 deletions

View File

@ -25,7 +25,7 @@
(else x))))
(define cast-string-int
(lambda (x)
(exact-floor (cast-num (string->number (destroy-prefix x))))))
(floor (cast-num (string->number (destroy-prefix x))))))
(define exact-floor
(lambda (x)
(inexact->exact (floor x))))

View File

@ -25,7 +25,7 @@
(else x))))
(define cast-string-int
(lambda (x)
(exact-floor (cast-num (string->number (destroy-prefix x))))))
(floor (cast-num (string->number (destroy-prefix x))))))
(define exact-floor
(lambda (x)
(inexact->exact (floor x))))

View File

@ -25,7 +25,7 @@
(else x))))
(define cast-string-int
(lambda (x)
(exact-floor (cast-num (string->number (destroy-prefix x))))))
(floor (cast-num (string->number (destroy-prefix x))))))
(define cast-string-double
(lambda (x)
(cast-num (string->number (destroy-prefix x)))))