StrictMath.scalb(double d, int scaleFactor) has the following syntax.
public static double scalb(double d, int scaleFactor)
In the following code shows how to use StrictMath.scalb(double d, int scaleFactor) method.
//from www.j ava 2s .co m public class Main { public static void main(String[] args) { double d1 = 1.2 , d2 = 3.4, d3 = 0.0; int power = 2; System.out.println(StrictMath.scalb(d1, power)); System.out.println(StrictMath.scalb(d2, power)); System.out.println(StrictMath.scalb(d3, power)); } }
The code above generates the following result.