Examples of OtpErlangDouble


Examples of com.ericsson.otp.erlang.OtpErlangDouble

  }
 
  @Test
  public void testToString9()
  {
    Assert.assertEquals("-2.340000138101317E-10",ErlangLabel.dumpErlangObject(new OtpErlangDouble(-2.34e-10f)));
  }
View Full Code Here

Examples of com.ericsson.otp.erlang.OtpErlangDouble

  }
 
  @Test
  public void testToString10()
  {
    Assert.assertEquals("-2.3399999141693115",ErlangLabel.dumpErlangObject(new OtpErlangDouble(-2.34f)));
  }
View Full Code Here

Examples of com.ericsson.otp.erlang.OtpErlangDouble

  }
 
  @Test
  public void testToString11()
  {
    Assert.assertEquals("-2.34E-210",ErlangLabel.dumpErlangObject(new OtpErlangDouble(-2.34e-210)));
  }
View Full Code Here

Examples of com.ericsson.otp.erlang.OtpErlangDouble

 
  @Test
  public void testParse6a()
  {
    String text = " 458888.5";
    OtpErlangDouble number = (OtpErlangDouble)ErlangLabel.parseText(text);
    Assert.assertEquals(458888.5,number.doubleValue(),Configuration.fpAccuracy);
    Assert.assertEquals("458888.5",ErlangLabel.dumpErlangObject(ErlangRunner.getRunner().evaluateString(text)));
  }
View Full Code Here

Examples of com.ericsson.otp.erlang.OtpErlangDouble

 
  @Test
  public void testParse6b()
  {
    String text = " 458888.5e0 ";
    OtpErlangDouble number = (OtpErlangDouble)ErlangLabel.parseText(text);
    Assert.assertEquals(458888.5,number.doubleValue(),Configuration.fpAccuracy);
    Assert.assertEquals("458888.5",ErlangLabel.dumpErlangObject(ErlangRunner.getRunner().evaluateString(text)));
  }
View Full Code Here

Examples of com.ericsson.otp.erlang.OtpErlangDouble

 
  @Test
  public void testParse6c()
  {
    String text = " 458888.5e-5 ";
    OtpErlangDouble number = (OtpErlangDouble)ErlangLabel.parseText(text);
    Assert.assertEquals(4.588885,number.doubleValue(),Configuration.fpAccuracy);
    Assert.assertEquals("4.588885",ErlangLabel.dumpErlangObject(ErlangRunner.getRunner().evaluateString(text)));
  }
View Full Code Here

Examples of com.ericsson.otp.erlang.OtpErlangDouble

 
  @Test
  public void testParse6d()
  {
    String text = " 458888.5e5 ";
    OtpErlangDouble number = (OtpErlangDouble)ErlangLabel.parseText(text);
    Assert.assertEquals(4.588885e10,number.doubleValue(),Configuration.fpAccuracy);
    Assert.assertEquals("4.588885E10",ErlangLabel.dumpErlangObject(ErlangRunner.getRunner().evaluateString(text)));
  }
View Full Code Here

Examples of com.ericsson.otp.erlang.OtpErlangDouble

 
  @Test
  public void testParse6e()
  {
    String text = " 4588.456e34 ";
    OtpErlangDouble number = (OtpErlangDouble)ErlangLabel.parseText(text);
    Assert.assertEquals(4.588456e37,number.doubleValue(),Configuration.fpAccuracy);
    Assert.assertEquals("4.588456E37",ErlangLabel.dumpErlangObject(ErlangRunner.getRunner().evaluateString(text)));
  }
View Full Code Here

Examples of com.ericsson.otp.erlang.OtpErlangDouble

 
  @Test
  public void testParse6f()
  {
    String text = " 4588888888888888.456e244 ";
    OtpErlangDouble number = (OtpErlangDouble)ErlangLabel.parseText(text);
    Assert.assertEquals(4.588888888888889E259,number.doubleValue(),Configuration.fpAccuracy);
    Assert.assertEquals("4.588888888888889E259",ErlangLabel.dumpErlangObject(ErlangRunner.getRunner().evaluateString(text)));
  }
View Full Code Here

Examples of com.ericsson.otp.erlang.OtpErlangDouble

 
  @Test
  public void testParse6g()
  {
    String text = " 4588888888888888.456e-244 ";
    OtpErlangDouble number = (OtpErlangDouble)ErlangLabel.parseText(text);
    Assert.assertEquals(4.588888888888888E-229,number.doubleValue(),Configuration.fpAccuracy);
    Assert.assertEquals("4.588888888888888E-229",ErlangLabel.dumpErlangObject(ErlangRunner.getRunner().evaluateString(text)));
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.