lbs = map( V, 205, 1023, 0, 1300);

float lbs;int v;v = analogRead(0);lbs = (float)(v-205) / (1024.0-205.0) * 1300.0;

is there a way to do this mathematically without mapping?

Curios is there a way to do this mathematically without mapping?

For the mathematically inclined, here's the whole functionlong 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;}