How can we extract the decimal part of a floating point number and store the decimal part and the integer part into two separate integer variables?
Suppose A is your integer then (int)A, means casting the number to an integer and will be the integer part, the other is (A - (int)A)*10^n, here n is the number of decimals to keep.