math モジュールを使う。modfでタプルで返却される

import math
print(math.modf(1.2))

(0.2, 1.0)