Problem 51565. Convert a number from base 10 to factorial notation
Cody Problem 51560 asks you to convert a number from factorial notation to base 10. This problem is the companion: Write a function to convert a number from base 10 to factorial notation with a tolerance p that defaults to
if not specified.
Given 463, your function should return the character string ‘34101’, and given 23/24 (and the default tolerance), your function should return ‘0.123’. As in the previous problem, use A, B, C, etc. for digits greater than 9, and take the first place after the decimal point to be the 1/2! place.
Solution Stats
Problem Comments
-
3 Comments
Nikolaos Nikolaou
on 26 Apr 2021
is it me or there are issues with the tolerance?
ChrisR
on 26 Apr 2021
Nikolaos, what problems did you encounter?
goc3
on 10 May 2022
This, and its companion problem, are a great challenge. Well done.
Solution Comments
Show commentsProblem Recent Solvers6
Suggested Problems
-
Project Euler: Problem 2, Sum of even Fibonacci
2490 Solvers
-
791 Solvers
-
Square Digits Number Chain Terminal Value (Inspired by Project Euler Problem 92)
226 Solvers
-
Find the optimal shape to bring the maximum product by a given perimeter
42 Solvers
-
Replace pattern 0 1 0 and 1 0 1
146 Solvers
More from this Author291
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!