Beanconqueror
Beanconqueror copied to clipboard
Time fields in MS when selecting 3 decimal places works as expected. but 2 and 1 decimal points do not.
Time fields in MS when selecting 3 decimal places works as expected. but 2 and 1 decimal points do not.
With 3 decimal places selected, if i input 30 seconds, and 260 ms the time field will show 30.260
if i have select using 1 decimal place it does not work as expected.
if i input 30 seconds and 1 ms i would expect the input field to say 30.1 instead it shows 30.0 when choosing 1 decimal point. choosing 1 decimal point would mean increments of 100 ms, choosing 2 decimal points should mean increments of 10 ms and 3 decimal points should be increments of 1 ms.
Happening: if i input 30 seconds and 100 ms, it then shows 30.1 in the text box if i input 30 and 130 ms, it shows 30.1 if i input 30 and 170 ms, it shows 30.1 if i input 30 and 200ms it shows 30.2 if i input 30 and 1 ms it show 30.0
Expected: choosing 1 decimal point - input 30sec 1ms and see 30.1 choosing 2 decimal point - input 30sec and 12 ms see 30.12 choosing 3 decimal point - input 30sec and 120 ms and see 30.120
if your intentions are to input all 3 decimal places regardless of decimal point selection, then it should take rounding into consideration when displaying the correct decimal point.
for example:
if i have 1 decimal point selected,: input 30sec 120ms should show 30.1 in the text box input 30 sec 160ms should show 30.2 in the text box
Hey @rjl9, thanks for the tickets. Your findings are right. Even so you set to 1 decimal, you'd need to enter 100 or 150 or 293 etc. Based on this is that in background its still stored in 3 digits.
Actually the textbox would be needed to update to somehow add 1 digit, 2 digits or 3 digits and change: By 1 digit:
- 1 to 100
- 5 to 500
By 2 digits:
- 11 to 110
- 78 to 780
and so on. I'd be happy to receive a PR with a fix.
Have a great cup of coffee Lars