Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 1450 invoked from network); 1 Sep 2009 09:28:21 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 1 Sep 2009 09:28:21 -0000 Received: (qmail 23136 invoked by uid 500); 1 Sep 2009 09:28:20 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 23058 invoked by uid 500); 1 Sep 2009 09:28:19 -0000 Mailing-List: contact user-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@couchdb.apache.org Delivered-To: mailing list user@couchdb.apache.org Received: (qmail 23048 invoked by uid 99); 1 Sep 2009 09:28:19 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Sep 2009 09:28:19 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of akat.metin@gmail.com designates 209.85.220.227 as permitted sender) Received: from [209.85.220.227] (HELO mail-fx0-f227.google.com) (209.85.220.227) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 01 Sep 2009 09:28:10 +0000 Received: by fxm27 with SMTP id 27so3460104fxm.11 for ; Tue, 01 Sep 2009 02:27:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=xaqkgfZfX2prw1EmAyu6/5YOLUs9EYIhaSA6WiR3q+w=; b=xdCGzpGLVd2dLQESrrpWxy34AhvVvhTocanEIpVyqRzk3W4bMhd9ZOHjUJzs7LpsCW ym3lx4IWdWAbAnYNxKqK53SV0FDt97Z+h/kQn63eUMwne0HsSOycyT1QMAVWILLlOB9e Pik+M8uQ6djo6+3KngxjpzdSz+BZpiUteLlRw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=EUayl8hmnaSHVUXaDfNEFWvfdQuOIKc9Q6sJDc5z6lJD6OZbMPLuzrT6Lqfzzt1AIH pRvvIMwNRuMpP3YpGuBZQaTtSdXHKPaJc8nLgzOj4oIfhoRyzhbf6U95xEmOy+ytlYjw +eIa36JOin+Hf4GXWVr8FGDKfLbWYKq5UlL3w= MIME-Version: 1.0 Received: by 10.103.81.36 with SMTP id i36mr2783582mul.122.1251797270394; Tue, 01 Sep 2009 02:27:50 -0700 (PDT) In-Reply-To: <46aeb24f0909010218u3c4f8d4bp45ae6a377d9f26c7@mail.gmail.com> References: <98a246a10909010158v57cf5eb8r6a98b07933a14b7f@mail.gmail.com> <46aeb24f0909010218u3c4f8d4bp45ae6a377d9f26c7@mail.gmail.com> Date: Tue, 1 Sep 2009 12:27:50 +0300 Message-ID: <98a246a10909010227p7b20236et7cf7250b60951c21@mail.gmail.com> Subject: Re: Is fixed precision arithmetic possible in couchdb python? From: Metin Akat To: user@couchdb.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org Hm, this makes sense. I guess I'll go this way. Thanks On Tue, Sep 1, 2009 at 12:18 PM, Robert Newson wrote: > Multiply your numbers by the amount of precision you need and use > integers (*1000 for 3 d.p)? Using floating point to store money > amounts seems fraught with rounding errors. > > B.