uima-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Frank Schilder <frank.schil...@thomsonreuters.com>
Subject BigDecimal as CAS type
Date Wed, 10 Nov 2010 14:40:50 GMT
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:

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,

View raw message