You are here: Symbol Reference > Math387 Namespace > Functions > Math387.Sign Function
MtxVec VCL
ContentsIndex
PreviousUpNext
Math387.Sign Function

Fortran sign function.

Pascal
function Sign(const a: double; const b: double): double; overload;

It uses slightly different definition for changing sign of a complex number:

  • if b>=0, it returns |a|,
  • otherwise, -|a|.
Copyright (c) 1999-2025 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!