I have to display in UI on input tag, even whole numbers like 15 as 15.00 (or as many decimals user decides upon).
I'm currently using an input of type number with attributes min and max.
So far, the only options which I have seen online are to use input type text. (trying not to as it doesn't make sense to switch to text, as I'm only working with numbers).
I have tried using step attribute but doesn't cover the case for trailing zeros (neither chrome or firefox will show trailing zeros for a number).
Any help will be greatly appreciated.
If decimals set as 4, the following needs to happen:
ex.
15.2 shown as 15.2000
100 shown as 100.0000
(trying not to as it doesn't make sense to switch to text, as I'm only working with numbers)I will be cruel and say, try, 00001 = 1, but "00001" != 1.... Hint hint (if its only for UI ofc)