1. mathematicaly yours. :)public static double format(double value,double ratio){return((double)(((long)(value*Math.pow(10,ratio))-(((long)value)*Math.pow(10,ratio) ))/(Math.pow(10,ratio))))+(long)value;}2. i love oracle