You are here

private function Decoder::decodeFloat in Smart IP 6.2

Same name and namespace in other branches
  1. 7.2 includes/vendor/maxmind-db/reader/src/MaxMind/Db/Reader/Decoder.php \MaxMind\Db\Reader\Decoder::decodeFloat()
1 call to Decoder::decodeFloat()
Decoder::decodeByType in includes/vendor/maxmind-db/reader/src/MaxMind/Db/Reader/Decoder.php

File

includes/vendor/maxmind-db/reader/src/MaxMind/Db/Reader/Decoder.php, line 173

Class

Decoder

Namespace

MaxMind\Db\Reader

Code

private function decodeFloat($bits) {

  // XXX - Assumes IEEE 754 floats on platform
  list(, $float) = unpack('f', $this
    ->maybeSwitchByteOrder($bits));
  return $float;
}