printf(), the arguments to
automatically cast to the required type if possible. Thus, a
floating-point number can be printed as a hexadecimal integer with
%X", or a date field URL-escaped with "
cast that is nonsensical or impossible (like a
varbyte field to
%t" time) will print a "
In version 3.01.984500000 20010313 and later, integer formats
are automatically cast to the largest integer type available to
avoid truncation, so the
w flags are
not generally needed. This behavior can be controlled with the
promoteints argument to
Many typecasts are possible but result in truncated output;
e.g. printing a float as an int will truncate any decimal places off.
Copyright © Thunderstone Software Last updated: Mon Feb 18 10:28:15 EST 2013