fmt()

Converts a float to a string. Returns a string in which the given value is converted to an ASCII string according to the width and precision specified.

Syntax:

fmt(realNum [, width, precision]);

where

realNum is the real number to convert.

width is optional; default = 10. The string width (number of characters in converted string). Must be equal to or larger than the total size of the resulting string plus a string termination character.

precision is optional; default = 6. The number of characters to the right of the decimal point.

Example:

The example returns the string "10.134599".

decl str;
str = fmt(10.134599);

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 

Contents
Additional Resources