From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id HAA22060; Fri, 18 Oct 2002 07:06:58 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id HAA21412 for ; Fri, 18 Oct 2002 07:06:57 +0200 (MET DST) X-SPAM-Warning: Sending machine is listed in blackholes.five-ten-sg.com Received: from athlon.baretta.com ([62.211.4.28]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id g9I56t504413 for ; Fri, 18 Oct 2002 07:06:56 +0200 (MET DST) Received: from baretta.com (localhost.localdomain [127.0.0.1]) by athlon.baretta.com (Postfix) with ESMTP id 790FC27250 for ; Fri, 18 Oct 2002 07:17:39 +0200 (CEST) Message-ID: <3DAF9973.6060209@baretta.com> Date: Fri, 18 Oct 2002 07:17:39 +0200 From: Alessandro Baretta Organization: Baretta srl -- www.baretta.com User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.1) Gecko/20020826 X-Accept-Language: it, en MIME-Version: 1.0 To: Ocaml Subject: [Caml-list] Rounding absent from Pervasives? Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk 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