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 concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id E05E0BBBB for ; Sun, 19 Feb 2006 15:03:47 +0100 (CET) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id k1JE3lOS006735 for ; Sun, 19 Feb 2006 15:03:47 +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 PAA29594 for ; Sun, 19 Feb 2006 15:03:46 +0100 (MET) Received: from hedwig1.umh.ac.be (hedwig2.umh.ac.be [193.190.193.73]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id k1JE3kxB017246 for ; Sun, 19 Feb 2006 15:03:46 +0100 Received: from poincare (Debian-exim@pri-011.umh.ac.be [10.101.0.11]) by hedwig1.umh.ac.be (8.13.1/8.13.1) with ESMTP id k1JE6nXt1413146; Sun, 19 Feb 2006 15:06:49 +0100 Received: from localhost ([127.0.0.1] ident=trch) by poincare with esmtp (Exim 4.60) (envelope-from ) id 1FAp9y-0001gD-Rg; Sun, 19 Feb 2006 15:03:34 +0100 Date: Sun, 19 Feb 2006 15:03:34 +0100 (CET) Message-Id: <20060219.150334.35094440.debian00@tiscali.fr> To: Richard Jones Cc: OCaml Mailing List Subject: Re: [Caml-list] What library to use for arbitrary precision decimals From: Christophe TROESTLER In-Reply-To: <20060219101831.GA13123@furbychan.cocan.org> References: <20060219101831.GA13123@furbychan.cocan.org> X-Face: #2fb%mPx>rRL@4ff~TVgZ"<[:,oL"`TUEGK/[8/qb58~C>jR(x4A+v/n)7BgpEtIph_neoL KJBq0JBY9:}8v|j Organization: Universite de Mons-Hainaut (http://math.umh.ac.be/an/) X-Spook: codes Centro security munitions Bosnia BLU-114/B Pine Gap Perl-RSA Nazi Mossad X-Blessing: Om Ah Hum Vajra Guru Pema Siddhi Hum X-Operating-System: GNU/Linux (http://www.linux.org/) X-Mailer-URL: http://www.mew.org/ X-Mailer: Mew version 4.2.53 on Emacs 22.0.50 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.1 (www dot roaringpenguin dot com slash mimedefang) X-j-chkmail-Score: MSGID : 43F87AC3.000 on concorde : j-chkmail score : X : 0/20 1 X-j-chkmail-Score: MSGID : 43F87AC2.000 on nez-perce : j-chkmail score : XX : 0/20 2 X-Miltered: at concorde with ID 43F87AC3.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Miltered: at nez-perce with ID 43F87AC2.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; caml-list:01 christophe:01 troestler:01 rounding:01 cheers:01 wrote:01 arbitrary:01 arbitrary:01 arithmetic:01 debian:02 floats:02 library:03 library:03 chris:05 implement:05 X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.6 required=5.0 tests=FROM_ENDS_IN_NUMS, NORMAL_HTTP_TO_IP autolearn=disabled version=3.0.3 On Sun, 19 Feb 2006, Richard Jones wrote: > > What library / type should I be using for arbitrary precision decimals > - ie. floats where I can store things like currency amounts without > getting rounding errors? For some time I have been thinking to implement the following spec. but I never found the time... http://72.14.207.104/search?q=cache:H663GV4FII4J:www2.hursley.ibm.com/decimal/+decimal+arithmetic&hl=en&ct=clnk&cd=1 Cheers, ChriS