int()
Returns the largest integer not greater than a given floating decimal number. This function is the same as floor(). Therefore, the value retuned for negative numbers may not be what most people would expect. To avoid confusion, use fix() or floor() depending on which is appropriate.
Syntax:
int(realVal);
where
realVal is a real value.
Example:
decl i; i = int(1.1); // returns integer 1 i = int(1.9); // returns integer 1 i = int(-1.1); // returns integer -2 i = int(-1.9); // returns integer -2
Download Example File:
The following link(s) lead to the Agilent EEsof EDA Knowledge center website. You will need to register at this site with a valid support contract to download an example file.
Force to Grid
Generate SnP Component
PI Attenuator
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 ![]()