getid3_lib::DecimalBinary2Float

Advertisement

Syntax Syntax

getid3_lib::DecimalBinary2Float( string $binarynumerator )

Parameters Parameters

$binarynumerator

(string) (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

This site uses Akismet to reduce spam. Learn how your comment data is processed.