Math.scalb : Floating Point Number « JDK 6 « Java






Math.scalb

 

public class FloastPointDemo {
    public static void main (String[] args) {

        // Returns 12.0 x (2^3)
        double scalbResult = Math.scalb (12.0, 3);
        System.out.println ("Math.scalb (12.0, 3) = " + scalbResult);

    }
}

//Math.scalb (12.0, 3) = 96.0

        








Related examples in the same category

1.Math.getExponent
2.Math.nextAfter
3.Math.nextUp
4.Math.copySign