Draft
multiply double until it's an int
Description:
this is a seemingly simple kata, but it's actually harder than it seems.
your task: given a decimal, multiply it by 10 until it is an int.
ex:
1.38 -> 138
2.474 -> 2474
.0039 -> 39
4.442 -> 4442
this may seem easy, but floating point math inaccuracies actually make it kind of hard! good luck!
Similar Kata:
Stats:
Created | Oct 17, 2021 |
Warriors Trained | 20 |
Total Skips | 0 |
Total Code Submissions | 34 |
Total Times Completed | 13 |
C++ Completions | 13 |
Total Stars | 0 |
% of votes with a positive feedback rating | 10% of 10 |
Total "Very Satisfied" Votes | 0 |
Total "Somewhat Satisfied" Votes | 2 |
Total "Not Satisfied" Votes | 8 |
Total Rank Assessments | 9 |
Average Assessed Rank | 7 kyu |
Highest Assessed Rank | 7 kyu |
Lowest Assessed Rank | 8 kyu |