Help 4-20mA Convert Data Code and Adjust Readings

Could it be that the exact message was complaining about ambiguity of the call?
The exact error message would be helpful to show there.

But if it was the ambiguity issue I suspect, then the reason for it could be that you were mixing floating point and integral datatypes in the call.
If you want to map a floating point value, you need to provide all the parameters as floating point like this

  float raw = 12.3456;
  float mapped = map(raw, 4.0, 20.0, 0.0, 100.0);

(note the decimal places to indicate the constants are to be taken as floating point)

2 Likes