From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by yquem.inria.fr (Postfix) with ESMTP id DC2DDBBBB for ; Sun, 19 Feb 2006 18:13:26 +0100 (CET) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id k1JHDQvq001662 for ; Sun, 19 Feb 2006 18:13:26 +0100 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 SAA32645 for ; Sun, 19 Feb 2006 18:13:25 +0100 (MET) Received: from furbychan.cocan.org (furbychan.cocan.org [80.68.91.176]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id k1JHDOAu001653 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO) for ; Sun, 19 Feb 2006 18:13:25 +0100 Received: from rich by furbychan.cocan.org with local (Exim 3.35 #1 (Debian)) id 1FAs7g-0002eF-00 for ; Sun, 19 Feb 2006 17:13:24 +0000 Date: Sun, 19 Feb 2006 17:13:24 +0000 To: caml-list@inria.fr Subject: Re: [Caml-list] What library to use for arbitrary precision decimals Message-ID: <20060219171324.GA6877@furbychan.cocan.org> References: <20060219163838.GA32465@furbychan.cocan.org> <20060219170023.GA6769@furbychan.cocan.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060219170023.GA6769@furbychan.cocan.org> User-Agent: Mutt/1.5.9i From: Richard Jones X-Miltered: at nez-perce with ID 43F8A736.001 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Miltered: at nez-perce with ID 43F8A734.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; caml-list:01 notepad:01 arbitrary:01 operand:01 operand:01 defined:01 defined:01 library:03 depends:04 max:05 marketing:93 standard:07 standard:07 business:90 operations:09 X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=none autolearn=disabled version=3.0.3 I checked the standard and for standard operations on NUMERIC, the precision of the result is implementation defined, while the scale depends on the operation: + - S_r = max (S_1, S_2) * S_r = S_1 + S_2 / S_r = implementation defined where S_r = scale of the result, and S_1 = scale of the first operand and S_2 = scale of the second operand. Rich. -- Richard Jones, CTO Merjis Ltd. Merjis - web marketing and technology - http://merjis.com Team Notepad - intranets and extranets for business - http://team-notepad.com