HI I have a column called Claim, I want to create a new column New_claim as shown below
| Claim | New_Claim |
| 0.00000027 | 0 |
| -0.0000345 | 0 |
| -0.00000066 | 0 |
| 0.000045 | 0 |
| -0.00009 | 0 |
| 0.000000056 | 0 |
| -0.00000123 | 0 |
Are you just looking for the ROUND function?
It is hard to tell from your example if you want to round the value to integers?
new_claim = round(claim,1);
Or perhaps to hundredths?
new_claim = round(claim,0.01);
Are you just looking for the ROUND function?
It is hard to tell from your example if you want to round the value to integers?
new_claim = round(claim,1);
Or perhaps to hundredths?
new_claim = round(claim,0.01);
Indeed we need to know the exact rule to be applied. Besides ROUND() there are also INT() and FUZZ(). Depending on the requirements one can pick and choose.
- Jan.
Depending on what you're doing this may be relevant.
If that value is calculated, it may be easier to change to calculation.
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.