JCL Help:Sgn

From Project JEDI Wiki
Jump to navigationJump to search


Summary

Returns the sign of the argument.


Pascal

 function Sgn(const X: Float): Integer;


Parameters

Parameters Description
const X: Float Value whose sign to determine.


Return Value

Sign of X expressed as -1, 0 or +1.


Description

Sgn returns the sign of X. If X > 0 the result is 1, if X < 0 the result is -1, and finally if X = 0 the result is 0.


About

Unit

JclMath


Donator

Clayton Collie


Contribute to this help topic

This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page