Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

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?


To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: