sprintf()
Format text values into a string. This function works like fprintf() except that the output is formatted into a string rather than a file. The same format specifications are valid for the format string. Returns a formatted string.
See also: fprintf().
Syntax:
sprintf(fmt, args...);
where
fmt is output format string.
args is the values to be included in the formatted output, as required by the format string.
Example:
Creates and stores the following string in the variable s : The value of x is 5.5 .
decl x=5.5; decl s; s=sprintf ("The value of %s is %f", "x", x);
Where Used:
Measurement Expressions (Data Display equations and Schematic MeasEqns), Schematic, Layout, Simulation, GUI
Privacy
Statement
|
Terms of Use
|
Legal |
Contact Us
|
© Agilent 2000-2008 ![]()