DATA Step, Macro, Functions and more

How to convert numeric into character and keep the same view

Accepted Solution Solved
Reply
Regular Contributor
Posts: 210
Accepted Solution

How to convert numeric into character and keep the same view

[ Edited ]

Hi all,

 

Could you please remind how to convert numeric into character and keep the same view:

 

1.jpg

 

When I'm trying to use put (X, 7.3) I receive '000' after decimal point: "4.000" instead of "4".

 

Thank you!

 

 


Accepted Solutions
Solution
‎10-30-2017 09:52 AM
Super User
Super User
Posts: 9,406

Re: How to convert numeric into character and keep the same view

Posted in reply to DmytroYermak
put(x,best.);

Best format should adapt to the number, it is best after all Smiley Surprised)

View solution in original post


All Replies
Solution
‎10-30-2017 09:52 AM
Super User
Super User
Posts: 9,406

Re: How to convert numeric into character and keep the same view

Posted in reply to DmytroYermak
put(x,best.);

Best format should adapt to the number, it is best after all Smiley Surprised)

Regular Contributor
Posts: 210

Re: How to convert numeric into character and keep the same view

Thank you!
☑ This topic is solved.

Need further help from the community? Please ask a new question.

Discussion stats
  • 2 replies
  • 180 views
  • 0 likes
  • 2 in conversation