Sign in Join
FPDoc Onlineexperiment

Sign function

In unit Math

Return sign of argument.

Declaration

pascal
function Sign(const AValue: Integer): TValueSign; overload

Description

Sign returns the sign of it's argument, which can be an Integer, 64 bit integer, or a double. The returned value is an integer which is -1, 0 or 1, and can be used to do further calculations with.

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.