I'm new to C, I would like to achieve the following.
get two numbers after the decimal point
23.456 -> 0.45
11.235224 -> 0.23
and get all the numbers before the decimal point
23.456 -> 23
11.23 -> 11
.42 -> 0
How can I do it? I know it might be easy to some, but for me I still don't feel comforatble with C.