input number with float code example
Example 1: input type that allows float number
<input type="number" step="0.01">
Example 2: unitt only 1 number float
using UnityEngine.UI;
public Text textDivision;
public float division = 1.0/3; // this is equal to 0.33333333333333333333333333...
textDivision.text = division.ToString("F1"); //shows only 0.3