Example usage for org.apache.commons.math3.util FastMath getExponent

List of usage examples for org.apache.commons.math3.util FastMath getExponent

Introduction

In this page you can find the example usage for org.apache.commons.math3.util FastMath getExponent.

Prototype

public static int getExponent(final float f) 

Source Link

Document

Return the exponent of a float number, removing the bias.

Usage

From source file:de.tuberlin.uebb.jbop.example.DerivativeStructure.java

/**
 * Return the exponent of the instance value, removing the bias.
 * <p>//ww w. j a  va  2  s.c o m
 * For double numbers of the form 2<sup>x</sup>, the unbiased exponent is exactly x.
 * </p>
 * 
 * @return exponent for instance in IEEE754 representation, without bias
 */
public int getExponent() {
    return FastMath.getExponent(data[0]);
}