Challenge: Reverse the digits of a non-integral number. For instance 12.46 should become 64.21 as an example. Another one would be 3.78 should become 8.73.
1. You cannot convert the number to another type, like a string and just reverse the string.
2. The non-integral type must be preserved, so if you float for instance the output should be float. Likewise for double.
3. It must be decimal.
Have fun! />
This post has been edited by ButchDean: 22 November 2012 - 09:34 PM