Noemax FastInfoset.NET
ReadContentAsFloat Method
See Also  Send Feedback
Noemax.FastInfoset Namespace > XmlFastInfosetReader Class : ReadContentAsFloat Method






Reads the content at the current position as a single-precision floating point number.

Syntax

Visual Basic (Declaration) 
Public Overrides NotOverridable Function ReadContentAsFloat() As Single
Visual Basic (Usage)Copy Code
Dim instance As XmlFastInfosetReader
Dim value As Single
 
value = instance.ReadContentAsFloat()
C# 
public override float ReadContentAsFloat()
Delphi 
public function ReadContentAsFloat(): Single; override; 
JScript 
public override function ReadContentAsFloat() : float;
Managed Extensions for C++ 
public: float ReadContentAsFloat(); override 
C++/CLI 
public:
float ReadContentAsFloat(); override 

Return Value

The content as a single-precision floating-point number.

Remarks

If the content is a binary encoded single-precision floating-point number, the reader returns the value read. If the content is of any other type, the reader attempts to convert it to a single-precision floating-point number.

See Also