jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ben Short <...@benshort.co.uk>
Subject Re: No Float Support
Date Mon, 05 Oct 2009 09:23:38 GMT
Thanks Thomas

2009/10/5 Thomas Müller <thomas.mueller@day.com>

> 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
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message