getid3_lib::DecimalizeFraction()public staticWP 1.0

{} It's a method of the class: getid3_lib{}

No Hooks.

Return

float.

Usage

$result = getid3_lib::DecimalizeFraction( $fraction );
$fraction(string) (required)
-

Code of getid3_lib::DecimalizeFraction() WP 6.0

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