예제 #1
0
 public void test_Avog1() {
   // System.err.println("XXXXXX: " +  umol_L_0_0_6);
   // System.err.println("XXXXXW: " +  umol_L_0_0_6.width());
   // System.err.println("XXXXXLVD: " +  umol_L_0_0_6_low_value.doubleValue());
   // System.err.println("XXXXXH: " +  umol_L_0_0_6.high());
   // System.err.println("XXXXXLVP: " +  umol_L_0_0_6_low_value.precision());
   assertEquals("61234.e20", realAvog.toString());
 }
예제 #2
0
 public void test_Avog2() {
   // System.err.println("RXXXXX: " +  umol_L_0_0_6);
   // System.err.println("NNNNNNNP: " +
   // r_umol_a.minus(r_umol_b.times(REALdoubleAdapter.HALF)).precision());
   // System.err.println("RXXXXLVD: " +  r_umol_L_0_0_6_low_value.doubleValue());
   // System.err.println("RXXXXLVP: " +  r_umol_L_0_0_6_low_value.precision());
   // System.err.println("R2XXXLVP: " +  r_umol_L.precision());
   // System.err.println("R3XXXLVP: " +  r_umol_L_6.precision());
   // System.err.println("R4XXXLVP: " +  r_umol_L_0_0.precision());
   // System.err.println("R5XXXLVP: " +  r_umol_L_0_0.minus(r_umol_L_6).precision());
   // System.err.println("R51XXLVP: " +
   // r_umol_L_0_0.minus(r_umol_L_6).times(REALdoubleAdapter.HALF).precision());
   // System.err.println("R6XXXLVP: " +  r_umol_L_0_0.plus(r_umol_L_6).precision());
   assertEquals("61234.e20", realAvog.toString());
 }
예제 #3
0
 public void test_LiteralsL() {
   assertEquals("0.254", real0254_8.toString());
 }
예제 #4
0
 public void test_LiteralsI() {
   assertEquals("0.303", real03_5.toString());
 }
예제 #5
0
 public void test_LiteralsH() {
   assertEquals("0.33", real03_4.toString());
 }
예제 #6
0
 public void test_LiteralsG() {
   assertEquals("0.30", real03_3.toString());
 }
예제 #7
0
 public void test_LiteralsF() {
   assertEquals("0.3", real03_2.toString());
 }
예제 #8
0
 public void test_LiteralsS() {
   assertEquals("0.0254", real00254_1.toString());
 }
예제 #9
0
 public void test_LiteralsB() {
   assertEquals("1", real1_1.toString());
 }
예제 #10
0
 public void test_LiteralsA() {
   assertEquals("250.", real250_9.toString());
 }
예제 #11
0
 public void test_Literals9() {
   assertEquals("250.00", real250_4.toString());
 }
예제 #12
0
 public void test_Literals6() {
   assertEquals("250", real250_1.toString());
 }
예제 #13
0
 public void test_Literals5() {
   assertEquals("0.00", real0_4.toString());
 }
예제 #14
0
 public void test_Literals3() {
   assertEquals("0.0", real0_2.toString());
 }
예제 #15
0
 public void test_Literals2() {
   assertEquals("0.", real0_11.toString());
 }
예제 #16
0
 public void test_LiteralsN() {
   assertEquals("254e-3", real0254_10.toString());
 }
예제 #17
0
 public void test_LiteralsO() {
   assertEquals("254e-4", real00254_e.toString());
 }
예제 #18
0
 public void test_LiteralsC() {
   assertEquals("1.0", real1_2.toString());
 }
예제 #19
0
  public void test_doubles() {
    assertEquals("0", real0_5.toString());

    assertEquals("250", real250_5.toString());
    assertEquals("250.000000000000", real250_6.toString());
    assertEquals("250.000000000000", real250_7.toString());
    assertEquals("250.000000000000", real250_8.toString());
    assertEquals("250", real250_5.toString());

    assertEquals("0.300000000000000", real03_6.toString());
    assertEquals("0.300000000000000", real03_7.toString());
    assertEquals("0.300000000000000", real03_8.toString());
    assertEquals("0.330000000000000", real03_9.toString());
    assertEquals("0.303000000000000", real03_10.toString());

    assertEquals("0.254000000000000", real0254_1.toString());
    assertEquals("0.254000000000000", real0254_2.toString());
    assertEquals("0.254000000000000", real0254_3.toString());
    assertEquals("0.254000000000000", real0254_4.toString());
    assertEquals("0.254000000000000", real0254_5.toString());
  }
예제 #20
0
 public void test_LiteralsD() {
   assertEquals("1.00", real1_3.toString());
 }