Removal of Decimal Places

You have a bug in your sketch, the analogue ADC returns an integer value between 0 and 1023, there are no decimal places. If you post your sketch using the code button (#), we'll maybe be able to put you right.