JCL Help:CommercialRound
From Project JEDI Wiki
Jump to navigationJump to searchJCL Help: CommercialRound Function
Search in JCL Help
Search in all projects
Summary
Performs symmetic arithmetic rounding.
Pascal
function CommercialRound(const X: Float): Int64;
Parameters
Parameters | Description |
const X: Float | The value to round. |
Return Value
The rounded value.
Description
CommercialRound returns the value of X rounded to the nearest whole number. If X is exactly halfway between two whole numbers, the result is always the larger absolute value. For example, -2.5 is rounded to -3.
About
Unit
Donator
Ernesto Benestante
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