{"id":7277,"date":"2022-12-20T19:37:34","date_gmt":"2022-12-20T22:37:34","guid":{"rendered":"http:\/\/lode.uno\/linux-man\/index.php\/2022\/12\/20\/tcl_printdouble-man3\/"},"modified":"2022-12-20T19:37:34","modified_gmt":"2022-12-20T22:37:34","slug":"tcl_printdouble-man3","status":"publish","type":"post","link":"https:\/\/lode.uno\/linux-man\/2022\/12\/20\/tcl_printdouble-man3\/","title":{"rendered":"Tcl_PrintDouble (man3)"},"content":{"rendered":"<h1 align=\"center\">Tcl_PrintDouble<\/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=\"#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_PrintDouble \u2212 Convert floating value to string<\/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\"><b>Tcl_PrintDouble<\/b>(<i>interp, value, dst<\/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=\"35%\">\n<p style=\"margin-top: 1em\">Tcl_Interp <i>*interp<\/i> (in)<\/p>\n<\/td>\n<td width=\"16%\"><\/td>\n<td width=\"38%\">\n<p style=\"margin-top: 1em\">Before Tcl 8.0, the <b>tcl_precision<\/b> variable in this interpreter controlled the conversion. As of Tcl 8.0, this argument is ignored and the conversion is controlled by the <b>tcl_precision<\/b> variable that is now shared by all interpreters.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"35%\">\n<p>double <i>value<\/i> (in)<\/p>\n<\/td>\n<td width=\"16%\"><\/td>\n<td width=\"38%\">\n<p>Floating-point value to be converted.<\/p>\n<\/td>\n<\/tr>\n<tr valign=\"top\" align=\"left\">\n<td width=\"11%\"><\/td>\n<td width=\"35%\">\n<p>char <i>*dst<\/i> (out)<\/p>\n<\/td>\n<td width=\"16%\"><\/td>\n<td width=\"38%\">\n<p>Where to store the string representing <i>value<\/i>. Must have at least <b>TCL_DOUBLE_SPACE<\/b> characters of storage.<\/p>\n<\/td>\n<\/tr>\n<\/table>\n<p style=\"margin-left:62%;\">______________________________________________________________________________<\/p>\n<h2>DESCRIPTION <a name=\"DESCRIPTION\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\"><b>Tcl_PrintDouble<\/b> generates a string that represents the value of <i>value<\/i> and stores it in memory at the location given by <i>dst<\/i>. It uses <b>%g<\/b> format to generate the string, with one special twist: the string is guaranteed to contain either a \u201c.\u201d or an \u201ce\u201d so that it does not look like an integer. Where <b>%g<\/b> would generate an integer with no decimal point, <b>Tcl_PrintDouble<\/b> adds \u201c.0\u201d.<\/p>\n<p style=\"margin-left:11%; margin-top: 1em\">If the <b>tcl_precision<\/b> value is non-zero, the result will have precisely that many digits of significance. If the value is zero (the default), the result will have the fewest digits needed to represent the number in such a way that <b>Tcl_NewDoubleObj<\/b> will generate the same number when presented with the given string. IEEE semantics of rounding to even apply to the conversion.<\/p>\n<h2>KEYWORDS <a name=\"KEYWORDS\"><\/a> <\/h2>\n<p style=\"margin-left:11%; margin-top: 1em\">conversion, double-precision, floating-point, string<\/p>\n<hr>\n","protected":false},"excerpt":{"rendered":"<p>  Tcl_PrintDouble \u2212 Convert floating value to string <\/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,3601],"class_list":["post-7277","post","type-post","status-publish","format-standard","hentry","category-3-llamadas-de-bibliotecas","tag-2538","tag-man3","tag-tcl_printdouble"],"gutentor_comment":0,"_links":{"self":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/7277","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=7277"}],"version-history":[{"count":0,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/posts\/7277\/revisions"}],"wp:attachment":[{"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/media?parent=7277"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/categories?post=7277"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lode.uno\/linux-man\/wp-json\/wp\/v2\/tags?post=7277"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}