Lines Matching refs:binarypointnumber
83 function NormalizeBinaryPoint($binarypointnumber, $maxbits=52) { argument
85 if (strpos($binarypointnumber, '.') === false) {
86 $binarypointnumber = '0.'.$binarypointnumber;
87 } elseif ($binarypointnumber{0} == '.') {
88 $binarypointnumber = '0'.$binarypointnumber;
91 while (($binarypointnumber{0} != '1') || (substr($binarypointnumber, 1, 1) != '.')) {
92 if (substr($binarypointnumber, 1, 1) == '.') {
94 $binarypointnumber = substr($binarypointnumber, 2, 1).'.'.substr($binarypointnumber, 3);
96 $pointpos = strpos($binarypointnumber, '.');
98 $binarypointnumber = str_replace('.', '', $binarypointnumber);
99 $binarypointnumber = $binarypointnumber{0}.'.'.substr($binarypointnumber, 1);
102 …$binarypointnumber = str_pad(substr($binarypointnumber, 0, $maxbits + 2), $maxbits + 2, '0', STR_P…
103 return array('normalized'=>$binarypointnumber, 'exponent'=>(int) $exponent);
118 $binarypointnumber = decbin($intpart).'.'.$pointbitstring;
119 return $binarypointnumber;