Package erjang

Examples of erjang.EDouble.format()


  @BIF 
  static public EBinary float_to_binary(EObject obj) {
    EDouble value;
    if ((value = obj.testFloat()) != null) {
      return new EBinary(value.format(ERT.NIL).getBytes(IO.ISO_LATIN_1));
    }
    throw ERT.badarg(obj);
  }

  @BIF 
View Full Code Here


  @BIF 
  static public EBinary float_to_binary(EObject obj, EObject options) {
    EDouble value;
    if ((value = obj.testFloat()) != null) {
      return new EBinary(value.format(options).getBytes(IO.ISO_LATIN_1));
    }
    throw ERT.badarg(obj, options);
  }

  @BIF 
View Full Code Here

  @BIF 
  static public EString float_to_list(EObject obj) {
    EDouble value;
    if ((value = obj.testFloat()) != null) {
      return new EString(value.format(ERT.NIL));
    }
    throw ERT.badarg(obj);
  }

  @BIF
View Full Code Here

  @BIF
  static public EString float_to_list(EObject obj, EObject options) {
    EDouble value;
    if ((value = obj.testFloat()) != null) {
      return new EString(value.format(options));
    }
    throw ERT.badarg(obj, options);
  }

  @BIF
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.