wp_exif_frac2dec( string $str )
Convert a fraction string to a decimal.
Description Description
Parameters Parameters
- $str
-
(string) (Required)
Return Return
(int|float)
Source Source
File: wp-admin/includes/image.php
function wp_exif_frac2dec( $str ) { @list( $n, $d ) = explode( '/', $str ); if ( ! empty( $d ) ) { return $n / $d; } return $str; }
Expand full source code Collapse full source code View on Trac
Changelog Changelog
Version | Description |
---|---|
2.5.0 | Introduced. |