Return-Path: Delivered-To: apmail-uima-user-archive@www.apache.org Received: (qmail 46909 invoked from network); 10 Nov 2010 14:41:00 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 10 Nov 2010 14:41:00 -0000 Received: (qmail 60485 invoked by uid 500); 10 Nov 2010 14:41:31 -0000 Delivered-To: apmail-uima-user-archive@uima.apache.org Received: (qmail 60245 invoked by uid 500); 10 Nov 2010 14:41:30 -0000 Mailing-List: contact user-help@uima.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@uima.apache.org Delivered-To: mailing list user@uima.apache.org Received: (qmail 60237 invoked by uid 99); 10 Nov 2010 14:41:30 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Nov 2010 14:41:30 +0000 X-ASF-Spam-Status: No, hits=-1.4 required=10.0 tests=RCVD_IN_DNSWL_MED,RCVD_NUMERIC_HELO,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of frank.schilder@thomsonreuters.com designates 163.231.12.71 as permitted sender) Received: from [163.231.12.71] (HELO mailout4-tlr.thomson.com) (163.231.12.71) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Nov 2010 14:41:19 +0000 Received: from mailout4-tlr.thomson.com (localhost.localdomain [127.0.0.1]) by mailout4-tlr.thomson.com (Switch-3.3.2/Switch-3.3.2) with ESMTP id oAAEev9e019560 for ; Wed, 10 Nov 2010 14:40:57 GMT Received: from tlrusmneagfe04.ERF.THOMSON.COM (tlrusmneagfe04.erf.thomson.com [163.231.22.131]) by mailout4-tlr.thomson.com (Switch-3.3.2/Switch-3.3.2) with ESMTP id oAAEeuIj019543 for ; Wed, 10 Nov 2010 14:40:57 GMT Received: from TLRUSMNEAGMBX11.ERF.THOMSON.COM ([163.231.30.92]) by tlrusmneagfe04.ERF.THOMSON.COM with Microsoft SMTPSVC(6.0.3790.4675); Wed, 10 Nov 2010 08:40:51 -0600 Received: from 163.231.64.106 ([163.231.64.106]) by TLRUSMNEAGMBX11.ERF.THOMSON.COM ([163.231.30.65]) via Exchange Front-End Server mail.west.thomson.com ([163.231.22.162]) with Microsoft Exchange Server HTTP-DAV ; Wed, 10 Nov 2010 14:40:50 +0000 User-Agent: Microsoft-Entourage/12.27.0.100910 Date: Wed, 10 Nov 2010 08:40:50 -0600 Subject: BigDecimal as CAS type From: Frank Schilder To: Message-ID: Thread-Topic: BigDecimal as CAS type Thread-Index: AcuA5UTHWeR84gPgvk2RUpdQ+iwSDg== In-Reply-To: <4CD96BF0.2000306@gmx.de> Mime-version: 1.0 Content-type: text/plain; charset="US-ASCII" Content-transfer-encoding: 7bit X-OriginalArrivalTime: 10 Nov 2010 14:40:51.0665 (UTC) FILETIME=[45C5D410:01CB80E5] X-Virus-Checked: Checked by ClamAV on apache.org Hi all, I'm trying to represent the value of a money amount as BigDecimal. For example $3.25 should be annotated with a Money annotation. The Money annotation should have a feature called val and the value of this feature should be of type BigDecimal instead of float (or double). It has been suggested elsewhere that using floating point numbers is not a good idea for representing money amounts: http://www.ibm.com/developerworks/java/library/j-jtp0114/ Unfortunately, BigDecimals are not supported as CAS type for the value of an annotation feature. Would it be possible to add this type easily or could you suggest a work-around? Thanks a lot, Frank