caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* [Caml-list] Rounding absent from Pervasives?
@ 2002-10-18  5:17 Alessandro Baretta
  0 siblings, 0 replies; only message in thread
From: Alessandro Baretta @ 2002-10-18  5:17 UTC (permalink / raw)
  To: Ocaml

I noticed that the Pervasives module does not offer a function
round : float -> int
implementing the useual rule: if the the fractional part is 
greater than or equal to 0.5, round up; otherwise round 
down. Of course it can be implemented easily, but should it 
not simply belong to the Pervasives module?

Alex

-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-10-18  5:06 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-10-18  5:17 [Caml-list] Rounding absent from Pervasives? Alessandro Baretta

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).