7 th Jul 2022 07:12:57
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
Int Function Int 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

Round Function - Visual Basic 6.0 (VB 6.0)

Returns a number rounded to a specified number of decimal places.
Syntax:
Round(expression [,numdecimalplaces])
Parameter Description
expression Required. Numeric expression being rounded.
numdecimalplaces Optional. Default 0. Number indicating how many places to the right of the decimal are included in the rounding.

Return Data type:
Variant (Integer, Long, Single, Double)
Example:
Statement Result Remark
Round(1) 1  
Round(1.5) 2  
Round(2.5) 2 Nearest Even Number
Round(0.0035, 3) 0.004  
Round(0.0045, 3)

0.004

Nearest Even Digit
Round(2.5, 1) 2.5  
Round(1234.5678, 3) 1234.568  
Round(123.5678) 124  
Round(123.4567) 123  
Round("123.4567") 123  
Round(unknown) 0 uninitialized Variable
Round(Null) Null  
Round("abcd") Error Type mismatch
Round(True) -1 True - Non Zero
Round(False) 0 False - Zero
Go to top

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





© 2021 Chennaiiq.com. All Rights Reserved.

4007