I could do with a little more precision from the output of my analog light sensor. At the moment I am using an integer, but would like to see it as a float e.g. 87.8, etc. I'm not 100% sure if this is possible? I did try changing the type int to float, but all this done was transform e.g. 87 to 87.0
Here is my code:
int val = analogRead(light_pin); val = map(constrain(val, 0, 614), 0, 614, 0, 100);
Its constrained as the maximum output for the sensor is 3v.