28 th Jun 2022 20:58:05
Hai Friend , Sign In
Home
World
INDIA
Chennai City
Games
Developers
Members
Birthday
Search
Astrology
G. K.
Story
Tamil Nadu Government Holiday List 2018 in English and Tamil   *   Trichy: Wanted - PHP, MySql Programmers. Contact trichy people only 84894 28 444.   *   Indian Railways New Train Number List [Search / Enquiry / Locator / Finder]   *   பன்றிக் காய்ச்சல் பற்றி அறிந்து கொள்ளுங்கள் (Swine Flu H1N1)
See Also
Round Function Round Function
Fix Function Fix Function
Type Conversion Functions Type Conv. Functions
Visual Basic Functions Visual Basic Functions
Visual Basic Home Visual Basic Home
 
Description  Syntax  Return Datatype  Example  Migration

Int Function - Visual Basic 6.0 (VB 6.0)

Returns the integer portion of a number.
Syntax:
Int(number)
Parameter Description
number Required. Any number or any valid numeric expression.

Return Data type:
Variant (Integer, Long, Single, Double)
Example:
Statement Result Remark
Int(1) 1  
Int(1.5) 1  
Int(2.5) 2  
Int(-2.5) -3  
Int(1234.5678) 1234  
Int(123.5678) 123  
Int(-123.4567) 124  
Int("-123.4567") -124  
Int(unknown) 0 uninitialized Variable
Int(Null) Null  
Int("abcd") Error Type mismatch
Int(True) -1 True - Non Zero
Int(False) 0 False - Zero
Go to top

Migration from Visual Basic 6.0 (VB 6.0) to
  Int Function in VB Script (VBS)
  Int Function in JScript (JS)
  Int Function in ASP (Active Server Page)
  Int Function in PHP Script
  Int Function in MS-Access
  Int Function in MS SQL Server
  Int Function in Oracle
  Int Function in C Language
  Int Function in C++ Language
  Int Function in Foxpro
  Int Function in Fortran
  Int Function in MS Excel Sheet
Go to top
 





© 2021 Chennaiiq.com. All Rights Reserved.

3877