You could do it in one line: put trunc(-14.2+1000000000)-1000000000 where the 1000000000 part is a number bigger than anything you’re going to encounter in your app.