cint()

Given a non-integer real number, returns a rounded integer

Syntax
y = cint(x)

Arguments
Name Description Range Type Required
x number (-∞, ∞) real yes

Examples

a = cint(45.6)
returns 46
a = cint(-10.7)
returns -11

Defined in

Built in

See Also

abs(), exp(), float(), int(), log(), log10(), pow(), sgn(), sqrt()

Notes/Equations

0.5 rounds up, -0.5 rounds down (up in magnitude).

 

Privacy Statement  | Terms of Use  | Legal | Contact Us  | © Agilent 2000-2008 

Contents
Additional Resources