getid3_lib::DecimalizeFraction

Advertisement

Syntax Syntax

getid3_lib::DecimalizeFraction( string $fraction )

Parameters Parameters

$fraction

(Required)

Return Return

(float)

Source Source

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

	public static function DecimalizeFraction($fraction) {
		list($numerator, $denominator) = explode('/', $fraction);
		return $numerator / ($denominator ? $denominator : 1);
	}

Advertisement

Advertisement

Leave a Reply