Previous PageNext Page

Consider: Why round?
If you rounded so that the printed output would look nice, why not use formats for this?
Proc Print;
Var Kweight Kweight2 CHeight CHeight2;
Format Kweight 5.0 CHeight 5.1;

OBS KWEIGHT KWEIGHT2 CHEIGHT CHEIGHT2

1 5 5 25.4 25.4
2 9 9 50.8 50.8
3 8 8 43.2 43.2
Why would you ever want to throw away numerical precision? Rounding is rarely justified; when you do it, make sure you know what you are throwing away.

Previous PageTable Of ContentsNext Page