PB promotes datatypes for intermediate calculations, see help "Datatype promotion when evaluating numeric expressions" [look up 'expressions' in the Index tab] It's far too easy to get to the floating point Real and Double.
http://www.sybase.com/detail?id=1012599 is an oldie (2001) but a goodie.