Sgn() Returns the sign of a number. : Sgn « Math Functions « VBA / Excel / Access / Word

Home
VBA / Excel / Access / Word
1.Access
2.Application
3.Data Type
4.Data Type Functions
5.Date Functions
6.Excel
7.File Path
8.Forms
9.Language Basics
10.Math Functions
11.Outlook
12.PowerPoint
13.String Functions
14.Windows API
15.Word
16.XML
VBA / Excel / Access / Word » Math Functions » Sgn 




Sgn() Returns the sign of a number.
 
Sub mathF7()
    Debug.Print Sgn(-9)
End Sub

 
Related examples in the same category
1.Sgn(number) returns -1 if number is negative, 0 if number is 0, 1 if number is positive.
2.Sgn(-7) returns -1
3.Sgn(0) returns 0
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.