Difference between Fix and Int.

 Posted by Bhakti on 12/23/2009 | Category: VB.NET Interview questions | Views: 8185
Answer:

Both of them returns integer part of the provided number. Difference lies, how they deal with the negative numbers.
Fix returns the first negative integer greater than or equal to provided Number while Int returns the first negative integer less than or equal to provided Number.
For an example,
Int(-99.2)  ' Returns -100.

Fix(-99.2) ' Returns -99.


Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response