How do I get the integer portion and the remainder of the number? For example, I have a number of float type, 123.456789, and I want to copy the integer portion of the number into an int variable and the remainder of the number into a float in java:
float a = 123.456789
int b = 123
float c = 0.456789