Definition:
function wp_exif_frac2dec($str) {}
Convert a fraction string to a decimal.
Parameters
- string $str
Source code
function wp_exif_frac2dec($str) { @list( $n, $d ) = explode( '/', $str ); if ( !empty($d) ) return $n / $d; return $str; }
3641
No comments yet... Be the first to leave a reply!