"Fossies" - the Fresh Open Source Software Archive

Member "jacl1.4.1/docs/TclJavaLib/TclDouble.htm" (29 Oct 2000, 4267 Bytes) of package /linux/misc/jacl1.4.1.tar.gz:


Caution: In this restricted "Fossies" environment the current HTML page may not be correctly presentated and may have some non-functional links. Alternatively you can here view or download the uninterpreted raw source code. A member file download can also be achieved by clicking within a package contents listing on the according byte size field.

CLASS
tcl.lang.TclDouble -- This class is used to create, read, and modify double objects from Java code.
IMPLEMENTS
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.

IMPLEMENTS

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.