Skip to content

Latest commit

 

History

History
11 lines (6 loc) · 422 Bytes

File metadata and controls

11 lines (6 loc) · 422 Bytes

Programming_3

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 87.3.

Rules:

  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.