20 January 2012
fixed a bug associated with zero error in the hint.
integerd =(int)((id+error)/100.); // integer ( 840.0/100) = 8.0 // bug fixed for accounting with zero error 20January2012
decimald =(-(integerd)*100+(id+error))/100.;
l_integerd = double2String(integerd,1.)+"0 mm";

enjoy!

a collaboration lesson here https://sites.google.com/site/lookang/002-micrometer
attached the source in-case something goes wrong, anyone can continue to improve it :)