FileDocCategorySizeDatePackage
RealValues.javaAPI DocExample460Thu Feb 21 18:25:16 GMT 2002None

RealValues.java

import java.text.*;
/**
 * Show real values.
 * @author Ian F. Darwin, ian@darwinsys.com
 * @version $Id: RealValues.java,v 1.4 2002/02/21 23:25:17 ian Exp $
 */
public class RealValues {
	// Whether strictfp is commented out or not, it seems to
	// give the same answers, 0.3 and 0.8999999...
	public static /*strictfp*/ void main(String[] argv) {
		System.out.println("The real 0.3 is " + 0.3);
		System.out.println("The real 0.3 times 3 is " + 0.3*3);
	}
}