mirror of
https://github.com/ashinn/chibi-scheme.git
synced 2025-07-09 22:17:34 +02:00
making percentages inexact
This commit is contained in:
parent
8869320e63
commit
14370af921
1 changed files with 1 additions and 1 deletions
|
@ -451,7 +451,7 @@
|
|||
(define (plural word n)
|
||||
(if (= n 1) word (string-append word "s")))
|
||||
(define (percent n d)
|
||||
(string-append " (" (number->string (/ (round (* 1000 (/ n d))) 10)) "%)"))
|
||||
(string-append " (" (number->string (/ (round (* 1000.0 (/ n d))) 10)) "%)"))
|
||||
(let* ((end-time (get-time-of-day))
|
||||
(start-time (test-group-ref group 'start-time))
|
||||
(duration (timeval-difference (car end-time) (car start-time)))
|
||||
|
|
Loading…
Add table
Reference in a new issue