WordPress at a glance
function is not described

wp_exif_frac2dec() WP 2.5.0

Convert a fraction string to a decimal.

No Hooks.

Return

Int/float.

Usage

wp_exif_frac2dec( $str );
$str(string) (required)

Code of wp exif frac2dec: wp-admin/includes/image.php VER 5.0.3

<?php
function wp_exif_frac2dec($str) {
	@list( $n, $d ) = explode( '/', $str );
	if ( !empty($d) )
		return $n / $d;
	return $str;
}