7 kyu
Everything Is Even
99 of 895WarpSpideR
Description:
Here at Conformity Inc. we only like even things. We need you to put a stop to anything that does not conform to our strict even only policy.
Write a function that will convert any number to its nearest even number. When the number is halfway between two even numbers it should round away from zero.
Examples
1 => 2
0.5 => 0
-1 => -2
-0.5 => 0
Fundamentals
Mathematics
Stats:
Created | Sep 19, 2017 |
Published | Sep 19, 2017 |
Warriors Trained | 1654 |
Total Skips | 24 |
Total Code Submissions | 13512 |
Total Times Completed | 895 |
C# Completions | 99 |
JavaScript Completions | 810 |
Total Stars | 26 |
% of votes with a positive feedback rating | 88% of 307 |
Total "Very Satisfied" Votes | 249 |
Total "Somewhat Satisfied" Votes | 45 |
Total "Not Satisfied" Votes | 13 |
Total Rank Assessments | 10 |
Average Assessed Rank | 7 kyu |
Highest Assessed Rank | 6 kyu |
Lowest Assessed Rank | 8 kyu |