getid3_lib::DecimalizeFraction

Advertisement

Syntax Syntax

getid3_lib::DecimalizeFraction( string $fraction )

Parameters Parameters

$fraction

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

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