Java Number Power powerType(float power)

Here you can find the source of powerType(float power)

Description

power Type

License

Open Source License

Declaration

protected static int powerType(float power) 

Method Source Code

//package com.java2s;

public class Main {

    protected static int powerType(float power) {
        if (power < 400) {
            return 0;
        }/*from  w  w  w .  j av a  2  s .c om*/

        int type = 1;
        return (type += Float.valueOf((power - 400) / 400).intValue()) > 3 ? 3
                : type;
    }
}

Related

  1. PowerOutageDistr()
  2. powerString(int power)
  3. powerString(int power)
  4. powerToInteger(String pow)
  5. powerTrim(String s)
  6. powerX(long a, long b)
  7. powExact(long x, int y)
  8. powf(float v1, float v2)
  9. powi(double x, int p)