CLASS
tcl.lang.TclDouble -- This class is used to create, read, and modify double objects from Java code.
EXTENDS
tcl.lang.InternalRep
METHODS
static TclObject newInstance(double doubleValue)
static double get(Interp interp, TclObject tobj) throws TclException
static void set(TclObject tobj, double doubleValue)
ARGUMENTS
DESCRIPTION
newInstance
get
set
EQUIVALENT C FUNCTIONS
SEE ALSO
KEYWORDS

CLASS

tcl.lang.TclDouble -- This class is used to create, read, and modify double objects from Java code.

EXTENDS

tcl.lang.InternalRep

METHODS

static TclObject newInstance(double doubleValue)

static double get(Interp interp, TclObject tobj) throws TclException

static void set(TclObject tobj, double doubleValue)

ARGUMENTS

double doubleValue ()
New value for internal double representation.

Interp interp ()
If an error occurs while converting an object to be a double object, an error message is left in the interpreter's result object unless interp is NULL.

TclObject tobj ()
TclObject to manipulate. If the internal representation of tobj is not TclDouble, the method converts it to TclDouble.

DESCRIPTION

newInstance
The newInstance method creates and returns a new TclObject whose internal representation is the double doubleValue. The precision of doubleValue is controlled by the global Tcl variable tcl_precision, whose default value is 12.

get
The get method returns a double value from the tobj. If an error occurs while converting tobj to be a double object, an error message is left in the interp's result object unless interp is NULL.

set
The set method sets tobj to have the double value of doubleValue. When this method returns, the internal representation of tobj is TclDouble.

EQUIVALENT C FUNCTIONS

Tcl_NewDoubleObj, Tcl_GetDoubleFromObj, Tcl_SetDoubleObj

SEE ALSO

InternalRep, TclObject, TclList, TclIndex, TclString, TclInteger, TclBoolean, ReflectObject

KEYWORDS

double, internal representation, object, object type, precision, tcl_precision
Copyright © 1996-1998 Sun Microsystems, Inc.
Copyright © 1995-1997 Roger E. Critchlow Jr.