Converts the current value to a single-precision floating point number based on the underlying type.
[Visual Basic] Overridable Public Function ToSingle() As Single [C#] public virtual float ToSingle(); [C++] public: virtual float ToSingle(); [JScript] public function ToSingle() : float;
Exception Type | Condition |
---|---|
InvalidCastException | Always. |
Currently not implemented. Always throws an exception.