Zend Framework
LICENSE
This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.
Class for handling number conversions
This class can only handle numbers without precision
STANDARD = 'DECIMAL'
BINARY = 'BINARY'
TERNARY = 'TERNARY'
QUATERNARY = 'QUATERNARY'
QUINARY = 'QUINARY'
SENARY = 'SENARY'
SEPTENARY = 'SEPTENARY'
OCTAL = 'OCTAL'
NONARY = 'NONARY'
DECIMAL = 'DECIMAL'
DUODECIMAL = 'DUODECIMAL'
HEXADECIMAL = 'HEXADECIMAL'
ROMAN = 'ROMAN'
array $_roman = 'array'
Definition of all roman signs
array $_romanconvert = 'array'
Convertion table for roman signs
array $_units = 'array'
Calculations for all number units
__construct(
integer $value, string $type, string|Zend_Locale $locale
=
null
)
:
Zend_Measure_Abstract is an abstract class for the different measurement types
_fromDecimal(
integer $value, string $type
)
:
string
Convert input to type value string
_toDecimal(
integer $input, string $type
)
:
string
Convert input to decimal value string
convertTo(
string $type, integer $round
=
0, $locale
=
null
)
:
string
Alias function for setType returning the converted unit Default is 0 as this class only handles numbers without precision
setType(
string $type
)
:
void
Set a new type, and convert the value
setValue(
integer $value, string $type
=
null, string|Zend_Locale $locale
=
null
)
:
Set a new value