~legolas/ubuntu/natty/php5/5.3.5

« back to all changes in this revision

Viewing changes to ext/standard/tests/strings/bug47168.phpt

  • Committer: Stas Verberkt
  • Date: 2011-02-01 09:27:15 UTC
  • Revision ID: legolas@legolasweb.nl-20110201092715-yq052iu2yl4i2eyg
Inserted PHP 5.3.5.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
--TEST--
 
2
Bug #47168 (printf of floating point variable prints maximum of 40 decimal places)
 
3
--FILE--
 
4
<?php
 
5
 
 
6
$dyadic = 0.00000000000045474735088646411895751953125;
 
7
var_dump(printf ("%1.41f\n",unserialize(serialize($dyadic))));
 
8
 
 
9
?>
 
10
--EXPECT--
 
11
0.00000000000045474735088646411895751953125
 
12
int(44)