Class for holding signed rational numbers.
This class can hold rational numbers, consisting of a numerator and denominator both of which are of type unsigned long. Each rational is represented by an array with just two entries: the numerator and the denominator, in that order.
The class can hold either just a single rational or an array of rationals. The class will be used to manipulate any of the Exif tags which can have format PelFormat::SRATIONAL.
Located in /src/PelEntryRational.php (line 193)
PelEntry | --PelEntryNumber | --PelEntrySLong | --PelEntrySRational
Inherited from PelEntryNumber
PelEntryNumber::$dimension
PelEntryNumber::$max
PelEntryNumber::$min
PelEntryNumber::$value
Inherited from PelEntry
PelEntry::$bytes
PelEntry::$components
PelEntry::$format
PelEntry::$ifd_type
PelEntry::$tag
Make a new entry that can hold a signed rational.
Format a rational number.
The rational will be returned as a string with a slash '/' between the numerator and denominator. Care is taken to display '-1/2' instead of the ugly but mathematically equivalent '1/-2'.
Get the value of an entry as text.
The value will be returned in a format suitable for presentation, e.g., rationals will be returned as 'x/y', ASCII strings will be returned as themselves etc.
Inherited From PelEntrySLong
PelEntrySLong::__construct()
PelEntrySLong::numberToBytes()
Inherited From PelEntryNumber
PelEntryNumber::addNumber()
PelEntryNumber::formatNumber()
PelEntryNumber::getBytes()
PelEntryNumber::getText()
PelEntryNumber::getValue()
PelEntryNumber::numberToBytes()
PelEntryNumber::setValue()
PelEntryNumber::setValueArray()
PelEntryNumber::validateNumber()
Inherited From PelEntry
PelEntry::getBytes()
PelEntry::getComponents()
PelEntry::getFormat()
PelEntry::getIfdType()
PelEntry::getTag()
PelEntry::getText()
PelEntry::getValue()
PelEntry::setIfdType()
PelEntry::setValue()
PelEntry::__toString()
Documentation generated on Thu, 05 May 2011 07:19:05 +0200 by phpDocumentor 1.4.3