Hello, I'm new to Arduino

I am using an Arduino Uno.

I am trying to lcd.print my potentiometer input (0...1023) in a range of 0...50 and in 0.5 steps.

I found the extended Map-Function and with it I can print the input in 1/1024 steps but not in 0.5.

Function:

```
float extmap(double x, double in_min, double in_max, double out_min, double out_max)
{return (x - in_min) * (out_max - out_min) / (in_max - in_min) + out_min;}
```

Is there a way to print in 0.5 steps in range 0...50 although your potentiometer input is 0...1023?

Thanks in advance

Artur