~ubuntu-branches/ubuntu/vivid/zendframework/vivid

« back to all changes in this revision

Viewing changes to library/Zend/XmlRpc/Value/Double.php

  • Committer: Bazaar Package Importer
  • Author(s): Frank Habermann
  • Date: 2010-04-28 20:10:00 UTC
  • mfrom: (1.3.1 upstream) (9.1.4 sid)
  • Revision ID: james.westby@ubuntu.com-20100428201000-o347bj5qb5i3tpot
Tags: 1.10.4-1
new upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
 * @subpackage Value
18
18
 * @copyright  Copyright (c) 2005-2010 Zend Technologies USA Inc. (http://www.zend.com)
19
19
 * @license    http://framework.zend.com/license/new-bsd     New BSD License
20
 
 * @version    $Id: Double.php 20096 2010-01-06 02:05:09Z bkarwin $
 
20
 * @version    $Id: Double.php 21159 2010-02-23 17:56:52Z matthew $
21
21
 */
22
22
 
23
23
 
46
46
    {
47
47
        $this->_type = self::XMLRPC_TYPE_DOUBLE;
48
48
        $precision = (int)ini_get('precision');
49
 
        $formatString = '%1.' . $precision . 'f';
 
49
        $formatString = '%1.' . $precision . 'F';
50
50
        $this->_value = rtrim(sprintf($formatString, (float)$value), '0');
51
51
    }
52
52