* 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)
| 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 |