FloastPointDemo.java Source code

Java tutorial

Introduction

Here is the source code for FloastPointDemo.java

Source

public class FloastPointDemo {
    public static void main(String[] args) {
        // Returns the unbiased exponent value of a double,
        // where 2^exp <= d. In this case, 2^4 <= 17
        int exp = Math.getExponent(17.0);
        System.out.println("Math.getExponent (17.0) = " + exp);

    }
}

//