Many measurements received as input to Zend Framework applications can only be passed
to Zend_Measure_* classes as strings, such as numbers written
using roman numerals
or extremely large binary values that exceed the precision of PHP's
native integer and float types. Since integers can be denoted using strings, if there is
any risk of losing precision due to limitations of PHP's native
integer and float types, using strings instead.
Zend_Measure_Number uses the BCMath extension to support
arbitrary precision, as shown in the example below, to avoid limitations in many
PHP functions, such as bin2dec().
Example 592. Creation using strings
<?php
$mystring = "10010100111010111010100001011011101010001";
$unit = new Zend_Measure_Number($mystring, Zend_Measure_Number::BINARY);
echo $unit;




