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 UAA03359; Mon, 6 May 2002 20:20:22 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id UAA03335 for ; Mon, 6 May 2002 20:20:22 +0200 (MET DST) Received: from barry.mail.mindspring.net (barry.mail.mindspring.net [207.69.200.25]) by nez-perce.inria.fr (8.11.1/8.11.1) with ESMTP id g46IKLj16896 for ; Mon, 6 May 2002 20:20:21 +0200 (MET DST) Received: from sdn-ap-030caburbp0082.dialsprint.net ([65.177.240.82] helo=dylan) by barry.mail.mindspring.net with esmtp (Exim 3.33 #1) id 174n5t-00040h-00 for caml-list@inria.fr; Mon, 06 May 2002 14:20:18 -0400 Message-ID: <003301c1f52a$d76979d0$210148bf@dylan> From: "David McClain" To: References: <5.1.0.14.0.20020504185035.027211b0@pop.theWorld.com> Subject: Re: [Caml-list] string_of_float less accurate than sprintf "%f" ? Date: Mon, 6 May 2002 11:21:27 -0700 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4807.1700 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk David Chase writes: "It's also not entirely clear what rounding you are supposed to get when you ask for less-precise printing. The possibilities include: .... " These rounding modes are controlled by bits in a control register. Separating them from the format string allows one to test the stability of the entire (or portions) of the math code. I have never seen anyone attempt to plant this specification inside of a format string. If it matters for printout, then surely it also matters elsewhere in the code. - DM ------------------- 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