Ive got a double number.
double n=47758.35;
Inorder to get the decimal part of this number i did as follows
long decPart = (long) ((n-Math.floor(n))*100);
in most cases i get the correct decimal part but in this case the decPart becomes"34" instead of "35"
how can i get the exact decimal part
Please Help