getid3_lib::DecimalBinary2Float

Advertisement

Syntax Syntax

getid3_lib::DecimalBinary2Float( string $binarynumerator )

Parameters Parameters

$binarynumerator

(Required)

Return Return

(float)

Source Source

File: wp-includes/ID3/getid3.lib.php

	public static function DecimalBinary2Float($binarynumerator) {
		$numerator   = self::Bin2Dec($binarynumerator);
		$denominator = self::Bin2Dec('1'.str_repeat('0', strlen($binarynumerator)));
		return ($numerator / $denominator);
	}

Advertisement

Advertisement

Leave a Reply