Delphi Basics : Round command
Example code : A simple example begin ShowMessage('Round(12.75) = '+IntToStr(Round(12.75))); ShowMessage('Trunc(12.75) = '+IntToStr(Trunc(12.75))); ShowMessage(' Int(12.75) = '+FloatToStr(Int(12.75))); ShowMessage(' Frac(12.75) = '+FloatToStr(Frac ......