Answers for "input number with float"

16

input type that allows float number

<input type="number" step="0.01">
Posted by: Guest on June-20-2020
1

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
Posted by: Guest on May-22-2020

Browse Popular Code Answers by Language