Fractional part. Given a positive real number, print its fractional part.
Input |
Output |
17.9 |
0.9 |
10.34 |
0.34 |
0.001 |
0.001 |
179 |
0 |
19.99 |
0.99 |
Python, Java
Fractional part. Given a positive real number, print its fractional part.
Input |
Output |
17.9 |
0.9 |
10.34 |
0.34 |
0.001 |
0.001 |
179 |
0 |
19.99 |
0.99 |