openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pinaki Poddar <ppod...@apache.org>
Subject Re: [OFF] [VOTE]: Extend the source/test code line width to 120 chars
Date Thu, 18 Jun 2009 20:05:19 GMT

> Which of BigDecimal.ROUND_* constants will we use for rounding? :)

if (n1>n2) ROUND_UP
if (n1<n2) ROUND_DOWN
if (n1=n2) ROUND_HALF_UP

where n1 = no. of votes > 80
         n2 = no. of votes < 80

Now we need a computer program to count votes ;)


-----
Pinaki 
-- 
View this message in context: http://n2.nabble.com/-VOTE-%3A-Extend-the-source-test-code-line-width-to-120-chars-tp3113489p3115521.html
Sent from the OpenJPA Developers mailing list archive at Nabble.com.


Mime
View raw message