JCL Help:Signe

From Project JEDI Wiki
Jump to navigationJump to search


Summary

Returns the value of X with the same sign as Y.


Pascal

 function Signe(const X: Float; const Y: Float): Float;


Parameters

Parameters Description
const X: Float The value you wish to assign a sign to.
const Y: Float The value that has the desired sign to assign to X.


Return Value

The value of X with the sign (positive or negative) of Y.


Description

The result is the value of X with the same sign (positive or negative) as Y. If Y is zero, the result will be -X (the value of X with the sign reversed). If X is zero, the result will always be 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