;; -*-theme-d-*-

;; Copyright (C) 2015 Tommi Höynälänmaa
;; Distributed under GNU General Public License version 3,
;; see file doc/GPL-3.

;; Expected results: translation and running OK


(define-proper-program (tests test336)


  (import (standard-library core)
	  (standard-library basic-math)
	  (standard-library console-io))


  (define-simple-proc main (() <none> nonpure)
    (console-display-line (round 1.5))
    (console-display-line (round 1.0))
    (console-display-line (real->integer 2.0))
    (guard-without-result (exc (else (console-display-line exc)))
			  (console-display-line (real->integer 2.5)))
    (console-display-line (truncate 1.5))
    (console-display-line (floor 1.5))
    (console-display-line (ceiling 1.5)))

  )