I have a range of large (4- or 5-digit) numbers, which I need to raise to the -1 power. Because the numbers are all so large, they are obviously going to be very small when raised to that power. When I do it in SAS (using the elementwise operator), all the numbers in the output get rounded(?) to -1. So I get nothing but a lot of minus ones for the output.
Is this indeed the result of rounding? Can I get around this by formatting the output in a certain way? If so, what is the syntax for this? Again, sorry for asking about such simple things, I'm utterly new to SAS.
Code:
proc iml;
use sasdata.have;
read all var {Distance} into D;
print D;
Dmin = -1##D;
print Dmin;
quit;