7 kyu

Multiple remainder of the division

172 of 467Dmitry Kudla

Description:

Your task it to return true if the fractional part (rounded to 1 digit) of the result (a / b) exists, more than 0 and is multiple of n. Otherwise return false. (For Python return True or False)

All arguments are positive digital numbers.

Rounding works like toFixed() method. (if more than...5 rounds up)

Find exapmles below:


isMultiple(5, 2, 3) -> false // 2.5 -> 5 is not multiple of 3
isMultiple(5, 3, 4) -> false // 1.7 -> 7 is not multiple of 4
isMultiple(5, 4, 3) -> true // 1.3 -> 3 is multiple of 3
isMultiple(666, 665, 2) -> false // 1.0 -> return false

Fundamentals

Stats:

CreatedDec 12, 2017
PublishedDec 12, 2017
Warriors Trained1204
Total Skips39
Total Code Submissions3838
Total Times Completed467
JavaScript Completions270
Python Completions172
Ruby Completions48
Total Stars9
% of votes with a positive feedback rating78% of 137
Total "Very Satisfied" Votes93
Total "Somewhat Satisfied" Votes27
Total "Not Satisfied" Votes17
Total Rank Assessments5
Average Assessed Rank
7 kyu
Highest Assessed Rank
7 kyu
Lowest Assessed Rank
8 kyu
Ad
Contributors
  • Dmitry Kudla Avatar
  • maipatana Avatar
  • ZED.CWT Avatar
  • saudiGuy Avatar
Ad