Problem 42758. Convert float to base N
Solution Stats
Problem Comments
-
1 Comment
Rafael S.T. Vieira
on 19 Sep 2020
The problem actually considers 6 digits before and after the decimal point in the target base, which means 12 digits. Imho, when stating the number of digits after the decimal point, we must specify the base that we are referring to (since the digit 8 in base 10 is 4 digits in base 2, and the 2-digit number 15 in base 10 is only one digit F in base 16) .
Solution Comments
Show commentsProblem Recent Solvers19
Suggested Problems
-
2423 Solvers
-
1054 Solvers
-
Set some matrix elements to zero
502 Solvers
-
Replace multiples of 5 with NaN
423 Solvers
-
Create an n-by-n null matrix and fill with ones certain positions
509 Solvers
More from this Author2
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!