Hi guys, i have a problem. - Im trying to truncate a number by the following procedure: &result. = int(round(&array.[&counter.],0.000000000000001)*(10**&array.[&counter.-1]))*(10**-&array.[&counter.-1]); where &counter. is the number which need to be truncated, and &counter.-1 is the number og digits i want to truncate with. For curtain numbers, this fails. - An example; int(round(67.1,0.000000000000001)*(10**6))*(10**-6); which gives 67.09999999. I have come to the conclusion, that it is the int function, which is the problem; data _null_; number = 67.1*100000; number_int = int(number); put number; run; This returns "6709999" as an example. Any ideas what to do, to not run into this problem ?
... View more