Mapping an analog input to output decimals

Thanks guys, I found the solution here:
https://forum.arduino.cc/t/map-and-fmap-function/104769/6