/** class Num, our internal representation of a number * in the L0 language. * See http://www.radford.edu/itec380/2008fall/Hw06/hw06.html * * @author Ian Barland * @version 2008.Nov.30 */ public class Num extends Value { private double x; Num( double _x ) { this.x = _x; } public String toString() { return Double.toString(x); } /** Return the Java double this Value represents * (for use by other primitives in our language.) * @return the Java double this Value represents. */ double doubleValue() { return this.x; } }