Beta
Optimize me! DD + ceil
Description:
Format input data into two decimals float numbers.
Adittionally You must perform round half up ( ceil ).
If provided value is null it's value should be 0.0
For this puzzle you should optimize a poorly coded solution. If your results matches and are faster by at least 150ns than the given code for each test you will succed.
Examples
Input
"0"
Output
"0.00"
Input
null
Output
"0.00"
Input
"0.005"
Output
"0.01"
Refactoring
Similar Kata:
Stats:
Created | Mar 28, 2016 |
Published | Mar 29, 2016 |
Warriors Trained | 248 |
Total Skips | 68 |
Total Code Submissions | 380 |
Total Times Completed | 48 |
Java Completions | 48 |
Total Stars | 6 |
% of votes with a positive feedback rating | 72% of 16 |
Total "Very Satisfied" Votes | 8 |
Total "Somewhat Satisfied" Votes | 7 |
Total "Not Satisfied" Votes | 1 |
Total Rank Assessments | 13 |
Average Assessed Rank | 7 kyu |
Highest Assessed Rank | 5 kyu |
Lowest Assessed Rank | 8 kyu |