Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] Rounding absent from Pervasives?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Alessandro Baretta <alex@b...>
Subject: [Caml-list] Rounding absent from Pervasives?
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