BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
subrat1
Fluorite | Level 6

HI I have a column called Claim, I want to create a new column New_claim as shown below  

 

ClaimNew_Claim
0.000000270
-0.00003450
-0.000000660
0.0000450
-0.000090
0.0000000560
-0.000001230
1 ACCEPTED SOLUTION

Accepted Solutions
Tom
Super User Tom
Super User

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);

 

View solution in original post

3 REPLIES 3
Tom
Super User Tom
Super User

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);

 

jklaverstijn
Rhodochrosite | Level 12

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.

Reeza
Super User

Depending on what you're doing this may be relevant. 

If that value is calculated, it may be easier to change to calculation. 

http://support.sas.com/documentation/cdl/en/lrcon/69852/HTML/default/viewer.htm#p0ji1unv6thm0dn1gp4t...

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

How to Concatenate Values

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 3 replies
  • 750 views
  • 1 like
  • 4 in conversation