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 = 123.45f, f2 = 0.0f, f3 = -0.0f;

        System.out.println(StrictMath.signum(f1));

        System.out.println(StrictMath.signum(f2));

        System.out.println(StrictMath.signum(f3));
    }
}