Answers for "unitt only 1 number float"

C#
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

Code answers related to "unitt only 1 number float"

C# Answers by Framework

Browse Popular Code Answers by Language