value * 2^ scaleFactor

ReturnMethodSummary
static doublescalb(double d, int scaleFactor) Return d * 2<sup>scaleFactor</sup>.
static floatscalb(float f, int scaleFactor) Return f * 2<sup>scaleFactor</sup>.

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

    System.out.println(Math.scalb(1.2,2));
  }
}

The output:


4.8
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.