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

Java: How to multiply one BigDecimal to another BigDecimal

Java: How to multiply one BigDecimal to another BigDecimal
{filelink=11206}

import java.math.BigDecimal;
public class BigDecMulti
 {
  public static void main(String[] argv) throws Exception
  	{
    BigDecimal val1 = new BigDecimal(3.1415);
   BigDecimal val2 = BigDecimal.valueOf(123L);
    // Use multiply method
    val1 = val1.multiply(val2);
    System.out.println ("Result: "+val1);
  }
}

Users who found this page were searching for:

  • python check element in array
  • python iterate dict key value
  • list to tupl in python
  • python merge files keys
  • calculate percentage in python
  • attach a file python email
  • python iterate dict
  • python find number of occurrences
  • create an instance in python
  • perl directory listing

No comments yet.

Leave a Comment