diff -r 5b37998e522e -r 162c1de6545a web/lib/Zend/XmlRpc/Value/Double.php --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/web/lib/Zend/XmlRpc/Value/Double.php Fri Mar 11 15:05:35 2011 +0100 @@ -0,0 +1,62 @@ +_type = self::XMLRPC_TYPE_DOUBLE; + $precision = (int)ini_get('precision'); + $formatString = '%1.' . $precision . 'F'; + $this->_value = rtrim(sprintf($formatString, (float)$value), '0'); + } + + /** + * Return the value of this object, convert the XML-RPC native double value into a PHP float + * + * @return float + */ + public function getValue() + { + return (float)$this->_value; + } +}