The matlab function dec2base converts a positive integer number to a specified base. Extend it so that it works with non integers and negative numbers. For example 10.5 in base16 is 'a.8', and -4 is base2 is '-100'.
The tests are not case-sensitive and check the first 6 digits after the decimal point.
1208 Solvers
Return the first and last character of a string
1660 Solvers
124 Solvers
474 Solvers
32 Solvers
Problem Tags