BookmarkSubscribeRSS Feed
teja5959
Fluorite | Level 6

Hi please any one do this one

 

have                                           want

75.88599179                              75.87

71.75830186                              71.74

98.06665526                              98.04

81.73733246                              81.72

93.80288764                              93.78

3 REPLIES 3
PeterClemmensen
Tourmaline | Level 20

What is the logic here?

RW9
Diamond | Level 26 RW9
Diamond | Level 26

What does that mean?

75.88599179                              75.87

There is no rounding function which will round to some ad hoc number, you will need to specify the logic for what should happen to the number.  Rounding

75.88599179       

To two decimals will yield 75.88, there is no reason to take 0.01 off as far as I can tell.

ballardw
Super User

@RW9 wrote:

What does that mean?

75.88599179                              75.87

There is no rounding function which will round to some ad hoc number, you will need to specify the logic for what should happen to the number.  Rounding

75.88599179       

To two decimals will yield 75.88, there is no reason to take 0.01 off as far as I can tell.


Or .02 in the last row of the example

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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
  • 706 views
  • 0 likes
  • 4 in conversation