size : 239
uploaded_on : Wed Nov 25 00:00:00 1998
modified_on : Wed Dec 8 14:03:29 1999
title : Round with decimals resoultion
org_filename : Round.txt
author : Robert Kozak
authoremail : RobertKozak@Yahho.com
description : How to round e.g 1.239 to 1.24
keywords :
tested : not tested yet
submitted_by : The CKB Crew
submitted_by_email : ckb@netalive.org
uploaded_by : nobody
modified_by : nobody
owner : nobody
lang : pas
file-type : text/plain
category : pascal-alg-maths
__END_OF_HEADER__
> I just wanna round my decimals to nearest with only 2 decimals like
> 2.23789 to 2.24 , cant find any easy way so please help
> kind regards Peter E
function Round(s: double): double;
begin
Result := Trunc(100 * s + 0.5) / 100;
end;