Name

Int Function — Microsoft.VisualBasic.Conversion

Synopsis

Int(number)
number required; any valid numeric data type

The number to be processed

Return Value

Returns a value of the data type passed to it

Description

Returns the integer portion of a number. The fractional part of number is removed, and the resulting integer value is returned. Int does not round number to the nearest whole number. For example, Int(100.9) returns 100. If number is negative, Int returns the first negative integer less than or equal to number. For example, Int(-10.1) returns -11.

Get VB.NET Language Pocket Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.