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'
      
 Details BINARY = 'BINARY'
      
 Details TERNARY = 'TERNARY'
      
 Details QUATERNARY = 'QUATERNARY'
      
 Details QUINARY = 'QUINARY'
      
 Details SENARY = 'SENARY'
      
 Details SEPTENARY = 'SEPTENARY'
      
 Details OCTAL = 'OCTAL'
      
 Details NONARY = 'NONARY'
      
 Details DECIMAL = 'DECIMAL'
      
 Details DUODECIMAL = 'DUODECIMAL'
      
 Details HEXADECIMAL = 'HEXADECIMAL'
      
 Details ROMAN = 'ROMAN'
      
 Detailsarray $_roman = 'array'Definition of all roman signs
 Detailsarray $_romanconvert = 'array'Convertion table for roman signs
 Detailsarray $_units = 'array'Calculations for all number units
 Details__construct(
          integer $value, string $type, string|Zend_Locale $locale
              =
              null
          )
        
        :
        Zend_Measure_Abstract is an abstract class for the different measurement types
 Details_fromDecimal(
          integer $value, string $type
          )
        
        :
        stringConvert input to type value string
 Details_toDecimal(
          integer $input, string $type
          )
        
        :
        stringConvert input to decimal value string
 DetailsconvertTo(
          string $type, integer $round
              =
              0,  $locale
              =
              null
          )
        
        :
        stringAlias function for setType returning the converted unit Default is 0 as this class only handles numbers without precision
 DetailssetType(
          string $type
          )
        
        :
        voidSet a new type, and convert the value
 DetailssetValue(
          integer $value, string $type
              =
              null, string|Zend_Locale $locale
              =
              null
          )
        
        :
        Set a new value
 Details