Math: scalb(double d, int scaleFactor)
public class Main {
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);
}
}
Related examples in the same category