Java Number Max Value maxValue(byte length)

Here you can find the source of maxValue(byte length)

Description

max Value

License

Open Source License

Declaration

public static long maxValue(byte length) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    public static long maxValue(byte length) {
        return (long) Math.pow(2, Byte.SIZE * length - 1);
    }/*from   www.j ava  2  s  .  co  m*/
}

Related

  1. maximum(float first, float second)
  2. Maximum(float x, float y)
  3. maxInt(float a, float b)
  4. maxLimit(float value, float max)
  5. maxVal(int numbits)
  6. maxValue(int bits)
  7. maxValueUnsigned(int bits)