db-derby-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mariusz G <mar...@o2.pl>
Subject Re: function - returns decimal
Date Tue, 31 Jul 2007 09:29:18 GMT

package derbyextension;

import java.math.*;

public class Derby
{
  public static BigDecimal round(BigDecimal a, int scale)
  {
    return a.setScale(scale, RoundingMode.HALF_UP); 
  }
}

-- 
View this message in context: http://www.nabble.com/function---returns-decimal-tf4099457.html#a11920953
Sent from the Apache Derby Users mailing list archive at Nabble.com.


Mime
View raw message