> int decPlaces = 4;
> fracPart = (short)Math.round((myNumber - integPart)*Math.pow(10,decPlaces));
Fancy solution, Ivor, congratulations!
In the BigDecimal class we have a variable called "scale", that sets the number of digits.
Is there a similar field or method available in the encapsulating Double class?
(Excuse me my jargon practise)