public class ScalbMethod { public static void main(String[] args) { // get a x to be raised float x = 50.14f; int y = 4; // calculate x multiplied by 2 raised in y System.out.println("Math.scalb(" + x + "," + y + ")=" + Math.scalb(x, y)); } }
No comments:
Post a Comment