Returns this Value as a Float (Single)
Declaration Syntax
C# |
public float ToFloat()
Return Value
Itself as a Floating point number
Examples
CopyC#
Sofu.Sofu.Value val = new Sofu.Sofu.Value("333.6"); //Note the String Console.Out.WriteLine(val.ToFloat() + 1.2); //Writes 334.8