for example for the micrometer xml,

i have the number 1.23 which is idv

how do i split the

variable into an integer part and the decimal place part?

1.23      =            1.00        +            0.23

integer part i figure out to be          integerd =(int)(id/100.);

but how to give the decimal place ? i cant find a math.function to do that


reference: http://www.irt.org/articles/js069/index.htm
Method Summary

    * abs() - Returns the absolute value of a number

    * acos() - Returns the arccosine (in radians) of a number

    * asin() - Returns the arcsine (in radians) of a number

    * atan() - Returns the arctangent (in radians) of a number

    * atan2() - Returns the arctangent of the quotient of its arguments

    * ceil() - Returns the smallest integer greater than or equal to the number

    * cos() - Returns the cosine of a number

    * exp() - Return the Enumber, where number is the argument, and E is Euler's constant, the base of the natural logarithms.

    * floor() - Returns the largest integer less than or equal to a number

    * log() - Returns the natural logarithm (base E) of a number.

    * max() - Returns the greater of two numbers

    * min() - Returns the lesser of two numbers

    * pow() - Returns base if the exponent power, that is baseexponent

    * random() - Returns a pseudo-random number between 0 and 1

    * round() - Returns the value of a number rounded to the nearest integer

    * sin() - Returns the sine of a number

    * sqrt() - Returns the squareroot of a number

    * tan() - Returns the tangent of a number