sgn

ldmud-3.3.719/doc/efun/sgn · 258 B

From the archive ldmud-3.3.719.tar.gz

Download the archive   « Back to the archive contents

SYNOPSIS
        int sgn (int|float arg)

DESCRIPTION
        Return the sign of the argument.

        arg  sgn(arg)
        --------------
        > 0   1
          0   0
        < 0  -1

HISTORY
        Introduced in LDMud 3.2.9.

SEE ALSO
        abs(E)

Site Stats

Snippets: 1791
Codebases: 571