Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

public class Main {

    public static void main(String[] args) {

        float f1 = 5.0f, f2 = 1.23f, f3 = 0.0f;
        int power = 2;

        System.out.println(StrictMath.scalb(f1, power));

        System.out.println(StrictMath.scalb(f2, power));

        System.out.println(StrictMath.scalb(f3, power));
    }
}