fix()

Takes a real number argument, truncates it, and returns an integer value.

Syntax:

fix(realVal);

where

realVal is a real number.

Example:
decl b;
b = fix(1.1);        // returns 1 
b = fix(1.9);        // returns 1 
b = fix(-1.1);        // returns -1 
b = fix(-1.9);        // returns -1

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