Extracting just the decimal part of a float

Many decimal fractions cannot be represented exactly in binary. The fix is to round the number. Try this

int DecimalPart = 10000 * (Value - IntegerPart + 0.00005);

Pete