This commit is contained in:
John Kerl 2017-06-23 17:10:54 -04:00
parent 13b3de0c01
commit 4892a3bf9b
5 changed files with 9 additions and 5 deletions

View file

@ -372,7 +372,7 @@ static function_lookup_t FUNCTION_LOOKUP_TABLE[] = {
{FUNC_CLASS_CONVERSION, "float", 1,0, "Convert int/float/bool/string to float."},
{FUNC_CLASS_CONVERSION, "fmtnum", 2,0,
"Convert int/float/bool to string using\n"
"printf-style format string, e.g. '$s = fmtnum($n, \"%06lld\")'. WARNING: Miller numbers"
"printf-style format string, e.g. '$s = fmtnum($n, \"%06lld\")'. WARNING: Miller numbers\n"
"are all long long or double. If you use formats like %d or %f, behavior is undefined."},
{FUNC_CLASS_CONVERSION, "hexfmt", 1,0, "Convert int to string, e.g. 255 to \"0xff\"."},
{FUNC_CLASS_CONVERSION, "int", 1,0, "Convert int/float/bool/string to int."},

View file

@ -1799,7 +1799,8 @@ FUNCTIONS FOR FILTER/PUT
fmtnum
(class=conversion #args=2): Convert int/float/bool to string using
printf-style format string, e.g. '$s = fmtnum($n, "%06lld")'. WARNING: Miller numbersare all long long or double. If you use formats like %d or %f, behavior is undefined.
printf-style format string, e.g. '$s = fmtnum($n, "%06lld")'. WARNING: Miller numbers
are all long long or double. If you use formats like %d or %f, behavior is undefined.
hexfmt
(class=conversion #args=1): Convert int to string, e.g. 255 to "0xff".

View file

@ -1606,7 +1606,8 @@ FUNCTIONS FOR FILTER/PUT
fmtnum
(class=conversion #args=2): Convert int/float/bool to string using
printf-style format string, e.g. '$s = fmtnum($n, "%06lld")'. WARNING: Miller numbersare all long long or double. If you use formats like %d or %f, behavior is undefined.
printf-style format string, e.g. '$s = fmtnum($n, "%06lld")'. WARNING: Miller numbers
are all long long or double. If you use formats like %d or %f, behavior is undefined.
hexfmt
(class=conversion #args=1): Convert int to string, e.g. 255 to "0xff".

View file

@ -2710,7 +2710,8 @@ empty-string) value, else throws an error.
.\}
.nf
(class=conversion #args=2): Convert int/float/bool to string using
printf-style format string, e.g. '$s = fmtnum($n, "%06lld")'. WARNING: Miller numbersare all long long or double. If you use formats like %d or %f, behavior is undefined.
printf-style format string, e.g. '$s = fmtnum($n, "%06lld")'. WARNING: Miller numbers
are all long long or double. If you use formats like %d or %f, behavior is undefined.
.fi
.if n \{\
.RE

View file

@ -4378,7 +4378,8 @@ floor (class=math #args=1): Floor: nearest integer at or below.
<div class="pokipanel">
<pre>
fmtnum (class=conversion #args=2): Convert int/float/bool to string using
printf-style format string, e.g. '$s = fmtnum($n, "%06lld")'. WARNING: Miller numbersare all long long or double. If you use formats like %d or %f, behavior is undefined.
printf-style format string, e.g. '$s = fmtnum($n, "%06lld")'. WARNING: Miller numbers
are all long long or double. If you use formats like %d or %f, behavior is undefined.
</pre>
</div>