Browse Source

ZF-7712: use appropriate printf format for doubles

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@21158 44c647ce-9c0f-0410-b52a-842ac1e357ba
matthew 16 years ago
parent
commit
2609219785
1 changed files with 1 additions and 1 deletions
  1. 1 1
      library/Zend/XmlRpc/Value/Double.php

+ 1 - 1
library/Zend/XmlRpc/Value/Double.php

@@ -46,7 +46,7 @@ class Zend_XmlRpc_Value_Double extends Zend_XmlRpc_Value_Scalar
     {
         $this->_type = self::XMLRPC_TYPE_DOUBLE;
         $precision = (int)ini_get('precision');
-        $formatString = '%1.' . $precision . 'f';
+        $formatString = '%1.' . $precision . 'F';
         $this->_value = rtrim(sprintf($formatString, (float)$value), '0');
     }