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: Abasi Massri   on Jan 16

For your 1st question
Double d = 1.12323423424;
convert = new java.math.BigDecimal(d);
yValue =
convert.setScale(3,java.math.BigDecimal.ROUND_HALF_DOWN).doubleValue();

The value of yValue will be 1.123.

Share: 

 

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

 


Tagged: