NXC  Version 1.2.1 r5
 All Data Structures Files Functions Variables Groups Pages
string FormatVal ( string  fmt,
variant  val 
)
inline

Format a value.

Return the formatted string using the format and value. Use a standard numeric sprintf format specifier within the format string. The input string parameter may be a variable, constant, or expression.

Parameters
fmtThe string format containing a sprintf format specifier.
valAny numeric or string value.
Returns
A string containing the formatted value.
Warning
This function requires the enhanced NBC/NXC firmware.
Examples:
ex_FormatVal.nxc.