Given a number num, select the first d decimal places and pronounce the digits (in English). The function returns the pronunciation as a character array.
For example,
- if num is π and d is 2, the function should return 'three point one four'
- if num is 5 and d is 2, the function should return 'five point zero zero'
To simplify, we consider positive numbers less than 10.
Solution Stats
Solution Comments
Show comments
Loading...
Problem Recent Solvers9
Suggested Problems
-
1061 Solvers
-
Project Euler: Problem 1, Multiples of 3 and 5
3677 Solvers
-
Make a run-length companion vector
658 Solvers
-
Calculate the probability that at least two people in a group share the same birthday.
103 Solvers
-
778 Solvers
More from this Author53
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!