MCPcopy Create free account
hub / github.com/apache/avro / intBitsToFloat

Method intBitsToFloat

lang/php/lib/Datum/AvroIOBinaryDecoder.php:147–151  ·  view source on GitHub ↗

* Performs decoding of the binary string to a float value. * * XXX: This is not endian-aware! See comments in * AvroIOBinaryEncoder::floatToIntBits() for details. * * @param string $bits * @returns float */

($bits)

Source from the content-addressed store, hash-verified

145 * @returns float
146 */
147 public static function intBitsToFloat($bits)
148 {
149 $float = unpack('g', $bits);
150 return (float) $float[1];
151 }
152
153 /**
154 * @returns double

Callers 4

readFloatMethod · 0.95
readFloatMethod · 0.80
readFloatMethod · 0.80
readFloatMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected