## XmlReader::ReadElementContentAsFloat() method


Reads the current element and returns the contents as single-precision floating-point number.

```cpp
virtual float System::Xml::XmlReader::ReadElementContentAsFloat()
```


### ReturnValue

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

## See Also

* Class [XmlReader](../)
* Namespace [System::Xml](../../)
* Library [Aspose.PUB for C++](../../../)
## XmlReader::ReadElementContentAsFloat(String, String) method


Checks that the specified local name and namespace URI matches that of the current element, then reads the current element and returns the contents as a single-precision floating-point number.

```cpp
virtual float System::Xml::XmlReader::ReadElementContentAsFloat(String localName, String namespaceURI)
```


| Parameter | Type | Description |
| --- | --- | --- |
| localName | String | The local name of the element. |
| namespaceURI | String | The namespace URI of the element. |

### ReturnValue

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

## See Also

* Class [String](../../../system/string/)
* Class [XmlReader](../)
* Namespace [System::Xml](../../)
* Library [Aspose.PUB for C++](../../../)
