unit_name()
Returns a string; the unit name, given its code.
Syntax:
unit_name(unitCode);
where:
unitCode is a string, the unit name; one of these choices:
- STRING_UNIT returns "string"
- UNITLESS_UNIT returns "num"
- FREQUENCY_UNIT returns "freq"
- RESISTANCE_UNIT returns "res"
- CONDUCTANCE_UNIT returns "cond"
- INDUCTANCE_UNIT returns "ind"
- CAPACITANCE_UNIT returns "cap"
- LENGTH_UNIT returns "lng"
- TIME_UNIT returns "time"
- ANGLE_UNIT returns "ang"
- POWER_UNIT returns "power"
- VOLTAGE_UNIT returns "volt"
- CURRENT_UNIT returns "cur"
- DISTANCE_UNIT returns "dist"
Example:
decl unitStrg;
unitStrg = unit_name(FREQUENCY_UNIT); // unitStrg="freq"
Where Used:
Schematic, Layout
Privacy
Statement
|
Terms of Use
|
Legal |
Contact Us
|
© Agilent 2000-2008 ![]()