Statistics
1 Question
0 Answers
RANK
244,318
of 301,433
REPUTATION
0
CONTRIBUTIONS
1 Question
0 Answers
ANSWER ACCEPTANCE
0.0%
VOTES RECEIVED
0
RANK
of 21,272
REPUTATION
N/A
AVERAGE RATING
0.00
CONTRIBUTIONS
0 Files
DOWNLOADS
0
ALL TIME DOWNLOADS
0
RANK
of 174,520
CONTRIBUTIONS
0 Problems
0 Solutions
SCORE
0
NUMBER OF BADGES
0
CONTRIBUTIONS
0 Posts
CONTRIBUTIONS
0 Public Channels
AVERAGE RATING
CONTRIBUTIONS
0 Discussions
AVERAGE NO. OF LIKES
Feeds
Question
after rounding, how do i drop the '0' at the end. For example if I round 2.345 and 4.642 to 2.300 and 4.600, how do i drop the zeros and print out 2.3 and 4.6?
Input: 2.345 4.642 I round them to 2.300 and 4.600 I want to print them as 2.3 and 4.6
9 years ago | 1 answer | 0