{"id":6773,"date":"2022-12-20T19:33:37","date_gmt":"2022-12-20T22:33:37","guid":{"rendered":"http:\/\/lode.uno\/linux-man\/index.php\/2022\/12\/20\/tcl_doubleobj-man3\/"},"modified":"2022-12-20T19:33:37","modified_gmt":"2022-12-20T22:33:37","slug":"tcl_doubleobj-man3","status":"publish","type":"post","link":"https:\/\/lode.uno\/linux-man\/2022\/12\/20\/tcl_doubleobj-man3\/","title":{"rendered":"Tcl_DoubleObj (man3)"},"content":{"rendered":"<h1 align=\"center\">Tcl_DoubleObj<\/h1>\n<p> <a href=\"#NAME\">NAME<\/a><br \/> <a href=\"#SYNOPSIS\">SYNOPSIS<\/a><br \/> <a href=\"#ARGUMENTS\">ARGUMENTS<\/a><br \/> <a href=\"#DESCRIPTION\">DESCRIPTION<\/a><br \/> <a href=\"#SEE ALSO\">SEE ALSO<\/a><br \/> <a href=\"#KEYWORDS\">KEYWORDS<\/a> <\/p>\n<hr>\n<p>______________________________________________________________________________<\/p>\n<h2>NAME <a name=\"NAME\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">Tcl_NewDoubleObj, Tcl_SetDoubleObj, Tcl_GetDoubleFromObj \u2212 manipulate Tcl values as floating-point values<\/p>\n<h2>SYNOPSIS <a name=\"SYNOPSIS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>#include <tcl.h><\/b><\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">Tcl_Obj bodies manpages.csv script_extrae_body.sh script.sh usr <b><br \/> Tcl_NewDoubleObj<\/b>(<i>doubleValue<\/i>)<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>Tcl_SetDoubleObj<\/b>(<i>objPtr, doubleValue<\/i>)<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">int <b><br \/> Tcl_GetDoubleFromObj<\/b>(<i>interp, objPtr, doublePtr<\/i>)<\/p>\n<h2>ARGUMENTS <a name=\"ARGUMENTS\"><\/a> <\/h2>\n<table width=\"100%\" border=\"0\" rules=\"none\" frame=\"void\" cellspacing=\"0\" cellpadding=\"0\">\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"41%\">\n<p style=\"margin-top: 1em\">double <i>doubleValue<\/i> (in)<\/p>\n<\/td>\n<td width=\"16%\"><\/td>\n<td width=\"32%\">\n<p style=\"margin-top: 1em\">A double-precision floating-point value used to initialize or set a Tcl value.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"41%\">\n<p>Tcl_Obj <i>*objPtr<\/i> (in\/out)<\/p>\n<\/td>\n<td width=\"16%\"><\/td>\n<td width=\"32%\">\n<p>For <b>Tcl_SetDoubleObj<\/b>, this points to the value in which to store a double value. For <b>Tcl_GetDoubleFromObj<\/b>, this refers to the value from which to retrieve a double value.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"41%\">\n<p>Tcl_Interp <i>*interp<\/i> (in\/out)<\/p>\n<\/td>\n<td width=\"16%\"><\/td>\n<td width=\"32%\">\n<p>When non-NULL, an error message is left here when double value retrieval fails.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"41%\">\n<p>double <i>*doublePtr<\/i> (out)<\/p>\n<\/td>\n<td width=\"16%\"><\/td>\n<td width=\"32%\">\n<p>Points to place to store the double value obtained from <i>objPtr<\/i>.<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:68%;\">______________________________________________________________________________<\/p>\n<h2>DESCRIPTION <a name=\"DESCRIPTION\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">These procedures are used to create, modify, and read Tcl values that hold double-precision floating-point values.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>Tcl_NewDoubleObj<\/b> creates and returns a new Tcl value initialized to the double value <i>doubleValue<\/i>. The returned Tcl value is unshared.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>Tcl_SetDoubleObj<\/b> sets the value of an existing Tcl value pointed to by <i>objPtr<\/i> to the double value <i>doubleValue<\/i>. The <i>objPtr<\/i> argument must point to an unshared Tcl value. Any attempt to set the value of a shared Tcl value violates Tcl\u2019s copy-on-write policy. Any existing string representation or internal representation in the unshared Tcl value will be freed as a consequence of setting the new value.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>Tcl_GetDoubleFromObj<\/b> attempts to retrieve a double value from the Tcl value <i>objPtr<\/i>. If the attempt succeeds, then <b>TCL_OK<\/b> is returned, and the double value is written to the storage pointed to by <i>doublePtr<\/i>. If the attempt fails, then <b>TCL_ERROR<\/b> is returned, and if <i>interp<\/i> is non-NULL, an error message is left in <i>interp<\/i>. The <b>Tcl_ObjType<\/b> of <i>objPtr<\/i> may be changed to make subsequent calls to <b>Tcl_GetDoubleFromObj<\/b> more efficient.<\/p>\n<h2>SEE ALSO <a name=\"SEE ALSO\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">Tcl_NewObj, Tcl_DecrRefCount, Tcl_IncrRefCount, Tcl_GetObjResult<\/p>\n<h2>KEYWORDS <a name=\"KEYWORDS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">double, double value, double type, internal representation, value, value type, string representation<\/p>\n<hr>\n","protected":false},"excerpt":{"rendered":"<p>  Tcl_NewDoubleObj, Tcl_SetDoubleObj, Tcl_GetDoubleFromObj \u2212 manipulate Tcl values as floating-point values <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2536],"tags":[2538,3007,3144],"class_list":["post-6773","post","type-post","status-publish","format-standard","hentry","category-3-llamadas-de-bibliotecas","tag-2538","tag-man3","tag-tcl_setdoubleobj"],"gutentor_comment":0,"_links":{"self":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/6773","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/comments?post=6773"}],"version-history":[{"count":0,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/6773\/revisions"}],"wp:attachment":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/media?parent=6773"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/categories?post=6773"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/tags?post=6773"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}