bugl
bugl
HomeLearnPatternsPathsSearchPremium
HomeLearnPatternsPaths

Loading lesson path

Learn/SQL/SQL References
SQL•SQL References

MS Access Sgn() Function

Example

SELECT Sgn(243.5) AS SgnNum;

Definition and Usage

The Sgn() function returns the sign of a number.

This function will return one of the following:

  • If number > 0, it returns 1
  • If number = 0, it returns 0
  • If number < 0, it returns -1

Syntax

Sgn(
number
)

Parameter Values

ParameterDescription
numberRequired. The number to return the sign for

Technical Details

Works in:From Access 2000

Previous

MS Access Round() Function

Next

MS Access Sqr() Function