28 th Jun 2022 22:08:29
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
Abs Function Abs Function
Math Functions Math Functions
Visual Basic Functions Visual Basic Functions
Visual Basic Home Visual Basic Home
 
Description  Syntax  Return Datatype  Example  Migration

Sgn Function - Visual Basic 6.0 (VB 6.0)

Returns an integer indicating the sign of a number.
Syntax:
Sgn(number)
Parameter Description
number Required. A numeric expression.

Return Data type:
Variant (Double | Integer | Long)
Example:
Statement Result Remark
Sgn(1) 1  
Sgn(533) 1  
Sgn(33.57) 1  
Sgn(-1) -1  
Sgn(-533) -1  
Sgn(-33.57) -1  
Sgn(0) 0  
Sgn(unknown) 0 uninitialized Variable
Sgn(Null) Error Invalid use of Null
Sgn("abcd") Error Type mismatch
Sgn(True) -1 True - Non Zero
Sgn(False) 0 False - Zero

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





© 2021 Chennaiiq.com. All Rights Reserved.

5114