Click here to Skip to main content
15,891,473 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How do you calculate the Integer of a number ?

is it say

SET AAA = INT(444.34)
Posted

INT rounds a number down to the nearest integer: https://msdn.microsoft.com/en-us/library/ee634373.aspx[^]

It "throws away" any fractional part and for positive values returns the "whole number" part. In your example, it throws away the ".34" and returns an integer containing "444"
 
Share this answer
 
Use CEILING to get the next larger integer and FLOOR to get the largest integer less than or equal to the specified number.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900