Powered by Ajaxy
Digg StumbleUpon LinkedIn YouTube Flickr Facebook Twitter RSS Reset

Java: How to divide one BigDecimal from another BigDecimal

Java: How to divide one BigDecimal from another BigDecimal
{filelink=11208}

import java.math.BigDecimal;
public class BigDecDiv
 {
  public static void main(String[] argv) throws Exception
  	{
    BigDecimal val1 = new BigDecimal(152000041);
    BigDecimal val2 = BigDecimal.valueOf(123L);
    // Diviser et arrondir le résultat
    val1 = val1.divide(val2, BigDecimal.ROUND_UP);
   System.out.println (val1);
  }
}

Users who found this page were searching for:

  • horizontal flip in python graphics
  • trasformare liste in tuple python
  • smtplib ftp properties python
  • perl alarm example
  • python read binary file
  • python read whole file in string
  • example in java how to reverese words
  • python get form

No comments yet.

Leave a Comment