jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thomas Müller <thomas.muel...@day.com>
Subject Re: No Float Support
Date Mon, 05 Oct 2009 08:35:46 GMT
Hi,

For JCR 1.0, use string, or multiply by 100 and use long.

For JCR 2.0, use decimal:
http://www.day.com/specs/jcr/2.0/5_Reading.html#5.10.4.5%20DECIMAL

Using double is not recommended, because of rounding problems:
http://www.javaranch.com/journal/2003/07/MoneyInJava.html
http://www.javapractices.com/topic/TopicAction.do?Id=13

See also http://wiki.apache.org/jackrabbit/QuestionsAndAnswers "Monetary Values"

Regards,
Thomas

Mime
View raw message