; floating point rounding
(define (round f n)
(/ (truncate (+ (* f (expt 10 n)) 0.5)) (expt 10 n)))
(display (round 1000/7 3)) (newline)
(display (round 1000/7 2)) (newline)
(display (round 1000/7 1)) (newline)
(display (round 1000/7 0)) (newline)
(display (round 1000/7 -1)) (newline)