returning decimal components
Naive solution