Hello,
I would like to reproduce a 4-digit display with floating point from 0.001 to 9999.
All the digits must be lit (no free space on the left or right)
Possible displays :
0.010 (not 0.01 or 00.01)
0.123
1.200 (not 1.2 or 01.20 or 001.2)
12.34
123.0 (not 123 or 0123)
1234 (no decimal separator)
Among the many examples of the format function on the web, I haven't found any simple solution. Do you have one ?
I look forward to reading you.
Best,
I would like to reproduce a 4-digit display with floating point from 0.001 to 9999.
All the digits must be lit (no free space on the left or right)
Possible displays :
0.010 (not 0.01 or 00.01)
0.123
1.200 (not 1.2 or 01.20 or 001.2)
12.34
123.0 (not 123 or 0123)
1234 (no decimal separator)
Among the many examples of the format function on the web, I haven't found any simple solution. Do you have one ?
I look forward to reading you.

Best,