2:23 am - Friday April 19, 2019

Math Example Program for IEEEremainder(double f1,double f2)

CANDID INDUSTRIAL TRAINING -- CHENNAI
Corporate Training for Experienced Candidate
Struts | Hibernate | Spring | Java / J2EE
SOAP | RestFull | Design Pattern | more...
Ph: +91 72000 69003
137b, 2nd st, shanthi nagar, Chrompet, Chennai -600044

//Math Example Program for IEEEremainder(double f1,double f2)
/**
 * @author:Candidjava.com
 * @description:used for to find the remainder of the integer division of a
 *                   double parameter by a second double parameter.
 */
public class Remainder {
	public static void main(String[] args) {
		double i = 12d;// represents the dividend.
		double j = 5d;// represents the divisor.
		double k = Math.IEEEremainder(i, j);
		// this math function used for find the remainder, prescribed by the
		// IEEE 754 standard.
		System.out.println("The remainder of i/j is:" + k);
	}
}

 

Output :
The remainder of i/j is:2.0

Filed in: Z-A All Java Codes

Comments are closed.