Professional Documents
Culture Documents
Number Converter Application For Mitrais Coding Test
Number Converter Application For Mitrais Coding Test
This document is a supplementary material for the source code attached in this e-mail. The
application is a console app which take user’s text input and then process it as appropriate. The
algorithm is as follows:
I’m choosing Decimal as the number data type to support a bigger amount of number. Even though
it supposedly has slower performance than other data type (like double, float, or long), the testing
shows that the performance cost is not significant for this type of operation. I also decided to
minimize string manipulation to reduce performance and memory cost, especially in
loops/iterations, that’s why I chose to use this approach, which mostly use Decimal calculations to
obtain the desired value.