Trouble with using the round function is that it can lead to incorrect results, as the following example demonstrates. A better(?) solution for what you want to do is to use the Int() or Intz() function. data r ; input x ; y = round(x,1); z1 = Int(x); z2 = Intz(x); datalines; 5.05 5.50 5.55 ;;;;
... View more