Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

INT What is it?

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
I recently did a wage calc and asked a few people how to round up numbers and they told me to use the INT function but what does it stand for and Do?
 
Int stands for integer part, so int(6.7) will result in 6
David Paulson


 
you can use cint to round to nearest:
cint(1.4) = 1
cint(1.5) = 2

 
INT will always return the lowest integer value.
exmaple: INT(10.9)=10 , INT(-10.9)=-11
FIX will always return the integer part.
example: FIX(10.9)=10 , FIX(-10.9)=-10
CINT will round up the number to the closest integer value.
example: CINT(10.9)=11 , CINT(-10.4)=-10 Cheers
Erez Sh.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top