MCPcopy Create free account
hub / github.com/apache/qpid-proton / get_float

Method get_float

python/proton/_data.py:1299–1305  ·  view source on GitHub ↗

Get the current node value as a :class:`float32`. :return: If the current node is a float, its value, 0 otherwise.

(self)

Source from the content-addressed store, hash-verified

1297 return timestamp(pn_data_get_timestamp(self._data))
1298
1299 def get_float(self) -> float32:
1300 """
1301 Get the current node value as a :class:`float32`.
1302
1303 :return: If the current node is a float, its value, 0 otherwise.
1304 """
1305 return float32(pn_data_get_float(self._data))
1306
1307 def get_double(self) -> float:
1308 """

Callers

nothing calls this directly

Calls 2

float32Class · 0.85
pn_data_get_floatFunction · 0.85

Tested by

no test coverage detected