Examples of PowerUnits


Examples of appeng.api.config.PowerUnits

   */
  public static String formatPowerLong(long n, boolean isRate)
  {
    double p = ((double) n) / 100;

    PowerUnits displayUnits = AEConfig.instance.selectedPowerUnit();
    p = PowerUnits.AE.convertTo( displayUnits, p );

    int offset = 0;
    String Lvl = "";
    String preFixes[] = new String[] { "k", "M", "G", "T", "P", "T", "P", "E", "Z", "Y" };
    String unitName = displayUnits.name();

    if ( displayUnits == PowerUnits.WA )
      unitName = "J";

    if ( displayUnits == PowerUnits.MK )
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.