⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 doubleobj.3

📁 linux系统下的音频通信
💻 3
字号:
'\"'\" Copyright (c) 1996-1997 Sun Microsystems, Inc.'\"'\" See the file "license.terms" for information on usage and redistribution'\" of this file, and for a DISCLAIMER OF ALL WARRANTIES.'\" '\" SCCS: @(#) @(#) DoubleObj.3 1.6 97/05/08 19:50:07'\" .so man.macros.TH Tcl_DoubleObj 3 8.0 Tcl "Tcl Library Procedures".BS.SH NAMETcl_NewDoubleObj, Tcl_SetDoubleObj, Tcl_GetDoubleFromObj \- manipulate Tcl objects as floating-point values.SH SYNOPSIS.nf\fB#include <tcl.h>\fR.spTcl_Obj *\fBTcl_NewDoubleObj\fR(\fIdoubleValue\fR).sp\fBTcl_SetDoubleObj\fR(\fIobjPtr, doubleValue\fR).spint\fBTcl_GetDoubleFromObj\fR(\fIinterp, objPtr, doublePtr\fR).SH ARGUMENTS.AS Tcl_Interp doubleValue in/out.AP double doubleValue inA double-precision floating point value used to initialize or set a double object..AP Tcl_Obj *objPtr in/outFor \fBTcl_SetDoubleObj\fR, this points to the object to be convertedto double type.For \fBTcl_GetDoubleFromObj\fR, this refers to the objectfrom which to get a double value; if \fIobjPtr\fR does not already point to a double object,an attempt will be made to convert it to one..AP Tcl_Interp *interp in/outIf an error occurs during conversion,an error message is left in the interpreter's result objectunless \fIinterp\fR is NULL..AP double *doublePtr outPoints to place to store the double valueobtained from \fIobjPtr\fR..BE.SH DESCRIPTION.PPThese procedures are used to create, modify, and readdouble Tcl objects from C code.\fBTcl_NewDoubleObj\fR and \fBTcl_SetDoubleObj\fRwill create a new object of double typeor modify an existing object to have double type. Both of these procedures set the object to have thedouble-precision floating point value given by \fIdoubleValue\fR;\fBTcl_NewDoubleObj\fR returns a pointer to a newly created objectwith reference count zero.Both procedures set the object's type to be doubleand assign the double value to the object's internal representation\fIdoubleValue\fR member.\fBTcl_SetDoubleObj\fR invalidates any old string representationand, if the object is not already a double object,frees any old internal representation..PP\fBTcl_GetDoubleFromObj\fR attempts to return a double valuefrom the Tcl object \fIobjPtr\fR.If the object is not already a double object,it will attempt to convert it to one.If an error occurs during conversion, it returns \fBTCL_ERROR\fRand leaves an error message in the interpreter's result objectunless \fIinterp\fR is NULL.Otherwise, it returns \fBTCL_OK\fR and stores the double valuein the address given by \fIdoublePtr\fR.If the object is not already a double object,the conversion will free any old internal representation..SH "SEE ALSO"Tcl_NewObj, Tcl_DecrRefCount, Tcl_IncrRefCount, Tcl_GetObjResult.SH KEYWORDSdouble, double object, double type, internal representation, object, object type, string representation

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -