FileDocCategorySizeDatePackage
StrictFP.javaAPI DocExample510Sun Feb 08 21:33:58 GMT 2004None

StrictFP

public class StrictFP extends Object
Show real values.
author
Ian F. Darwin, http://www.darwinsys.com/
version
$Id: StrictFP.java,v 1.3 2004/02/09 03:33:58 ian Exp $

Fields Summary
Constructors Summary
Methods Summary
public static voidmain(java.lang.String[] argv)

		double alpha = 8e+307;
		System.out.println(mulNotStrict(alpha));
		System.out.println(mulStrictFP(alpha));
		System.out.println(2 * alpha);
	
static doublemulNotStrict(double a)

		return a * 4 * 0.5;
	
static doublemulStrictFP(double a)

		return a * 4 * 0.5;