SYNOPSIS
#include <tcl.h>
Tcl_Obj * Tcl_NewDoubleObj(doubleValue)
Tcl_SetDoubleObj(objPtr, doubleValue)
int Tcl_GetDoubleFromObj(interp, objPtr, doublePtr)
ARGUMENTS
- double doubleValue (in)
-
A double-precision floating point value used to initialize or set a double object.
- Tcl_Obj *objPtr (in/out)
-
For
Tcl_SetDoubleObj() , this points to the object to be converted to double type. ForTcl_GetDoubleFromObj() , this refers to the object from which to get a double value; if objPtr does not already point to a double object, an attempt will be made to convert it to one. - Tcl_Interp *interp (in/out)
-
If an error occurs during conversion, an error message is left in the interpreter's result object unless interp is NULL.
- double *doublePtr (out)
-
Points to place to store the double value obtained from objPtr.
DESCRIPTION
These procedures are used to create, modify, and read
double Tcl objects from C code.
PORTABILITY
Windows 8.1. Windows Server 2012 R2. Windows 10. Windows Server 2016. Windows Server 2019. Windows 11. Windows Server 2022.
AVAILABILITY
PTC MKS Toolkit for Professional Developers
PTC MKS Toolkit for Enterprise Developers
PTC MKS Toolkit for Enterprise Developers 64-Bit Edition
SEE ALSO
- Functions:
Tcl_DecrRefCount() ,Tcl_GetObjResult() ,Tcl_IncrRefCount() ,Tcl_NewObj()
PTC MKS Toolkit 10.4 Documentation Build 39.