FloastPointDemo.java Source code

Java tutorial

Introduction

Here is the source code for FloastPointDemo.java

Source

public class FloastPointDemo {
    public static void main(String[] args) {
        // Returns the lesser adjacent of a double
        double lesserAdjacent = Math.nextAfter(123.0, 120.0);
        System.out.println("Math.nextAfter (123.0, 120.0) = " + lesserAdjacent);
    }
}

//