Separated integer variable data from remainder

Hello,

I have an integer variable in which I am trying to separate the integer from the remainder.

I am working on a converter a mm to inch converter that gives the remainder off as a fraction.

Example:

integer=3.54

I want to separate it into two variables

intergerA = 3

integerB = .54

Any suggestions would be greatly appreciated.

[386 byte] By [hollow_dimma] at [2007-11-27 8:04:18]
# 1
You can't have an integer with the value 3.54 or 0.54, so you'll have to change the requirements.Perhaps you'll want to start with a double with a value around 3.54, and end up with one integer with a 3 and another integer with a 54 (represening 1/100ths).
paulcwa at 2007-7-12 19:46:41 > top of Java-index,Java Essentials,Java Programming...
# 2
I'm trying to wrap my head around the integer 3.54
Hippolytea at 2007-7-12 19:46:41 > top of Java-index,Java Essentials,Java Programming...
# 3
Math.IEEEremainder?
Hippolytea at 2007-7-12 19:46:41 > top of Java-index,Java Essentials,Java Programming...