The Bug:
Number range inputs in dialogs with very large start and end values start at infinity.
When a number range input in a dialog has no initial value, it starts halfway between its start and end values. However, when both values are very large, such as 3.0e38 and 3.1e38, the input starts at "Infinity" instead, therefore introducing an inconsistency.
Steps to Reproduce:
Open a dialog with a number range input that has very large start and end values by using the command provided below.
/dialog show @s {type:"minecraft:notice",title:"Test",inputs:[{type:"minecraft:number_range",key:"value",label:"Value",start:3.0e38,end:3.1e38}]}Observe if the slider shows a value between the start and end values.
Observed Behavior:
The slider shows "Value: Infinity", which is outside the range of the input.
Expected Behavior:
The slider would show a value halfway between the start and end values.