IEEE remainder

ReturnMethodSummary
static doubleIEEEremainder(double f1, double f2)Computes the remainder operation on two arguments by the IEEE 754 standard.

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

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

The output:


-0.3999999999999999
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.