Code example for BigDecimal

Methods: unscaledValue

0
		assertTrue("the unscaledValue of -2839485.000 is wrong", unsVal
				.unscaledValue().toString().equals("-2839485000"));
		unsVal = new BigDecimal(123E10);
		assertTrue("the unscaledValue of 123E10 is wrong", unsVal
				.unscaledValue().toString().equals("1230000000000"));
		unsVal = new BigDecimal("-4.56E-13");
		assertTrue("the unscaledValue of -4.56E-13 is wrong: "
				+ unsVal.unscaledValue(), unsVal.unscaledValue().toString()
				.equals("-456"));
		unsVal = new BigDecimal(value, 3);
		assertTrue("the unscaledValue of 12345.908 is wrong", unsVal
				.unscaledValue().toString().equals("12345908"));
 
	} 
 
	/** 
	 * @tests java.math.BigDecimal#valueOf(long) 
	 */ 
	public void test_valueOfJ() { 
		BigDecimal valueOfL = BigDecimal.valueOf(9223372036854775806L);
		assertTrue("the bigDecimal equivalent of 9223372036854775806 is wrong",