Question by
masturbator · Nov 28, 2016 at 06:55 PM ·
inputfloatinputfieldconvert
How do i convert inputfield input to float ?
I have two inputfield's that i have to convert to float for making mathematical equations. Parse or Convert.ToSingle doesnt work here.
Thanks !
Comment
Try this out
float result = 0.0f;
string currentValue = "0.57";
if (float.TryParse(currentValue, out result))
{
// do something
}