6 kyu
Round by 0.5 steps
1,957 of 4,835vshjxyz
Description:
Round any given number to the closest 0.5 step
I.E.
solution(4.2) = 4
solution(4.3) = 4.5
solution(4.6) = 4.5
solution(4.8) = 5
Round up if number is as close to previous and next 0.5 steps.
solution(4.75) == 5
Mathematics
Fundamentals
Similar Kata:
Stats:
Created | Jul 25, 2013 |
Published | Jul 26, 2013 |
Warriors Trained | 7459 |
Total Skips | 825 |
Total Code Submissions | 21311 |
Total Times Completed | 4835 |
CoffeeScript Completions | 206 |
JavaScript Completions | 1714 |
Python Completions | 1957 |
C# Completions | 521 |
Rust Completions | 538 |
COBOL Completions | 10 |
C Completions | 39 |
Total Stars | 102 |
% of votes with a positive feedback rating | 91% of 751 |
Total "Very Satisfied" Votes | 636 |
Total "Somewhat Satisfied" Votes | 100 |
Total "Not Satisfied" Votes | 15 |