Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: Colleen Burton   on Jan 16 In Java Category.

  
Question Answered By: Gustavo Costa   on Jan 16

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

Share: 

 

This Question has 11 more answer(s). View Complete Question Thread

 


Tagged: