ClassSystem.Math SyntaxDim result As Integer = Sign(value)
DescriptionThe Sign function determines the sign of a number. It returns 1 for negative numbers, 1 for positive numbers, or 0 for zero. Usage at a Glance
Version DifferencesThe name of this function has changed since VB 6. In VB 6, its name was Sgn, and it was an intrinsic VB function. In .NET, it is named Sign, and it is a member of the System.Math class. See AlsoAbs Function |