Hello, guys!
I think the most of you know this function:
function Round ( const Number : Extended ) : Int64;
Example:
result := Round(15.5); // result := 16
This function works great but is there any way how to round decimal values, either?
PHP has round function, too:
echo round(1.95583, 2); // will return 1.96
... but as you can see, there is second parameter which defines how many decimal places would be taken.
Does exist similar function here, in Object Pascal?