So I'd like more than integer resolution for a map command I'm working with, but the common map() function only does integer math: http://arduino.cc/en/Reference/Map
For the mathematically inclined, here's the whole function
long map(long x, long in_min, long in_max, long out_min, long out_max)
{
return (x - in_min) * (out_max - out_min) / (in_max - in_min) + out_min;
}
Hardly seems worth the bother of encapsulating it in a function, but if you take that bit of code and replace all the longs with floats you'll get what you want.