1--TEST--
2var_dump float test
3--INI--
4precision=12
5--FILE--
6<?php
7// this checks f,g,G conversion for snprintf/spprintf
8var_dump(array(ini_get('precision'),.012,-.012,.12,-.12,1.2,-1.2,12.,-12.,0.000123,.0000123,123456789012.0,1234567890123.0,12345678901234567890.0));
9?>
10--EXPECT--
11array(14) {
12  [0]=>
13  string(2) "12"
14  [1]=>
15  float(0.012)
16  [2]=>
17  float(-0.012)
18  [3]=>
19  float(0.12)
20  [4]=>
21  float(-0.12)
22  [5]=>
23  float(1.2)
24  [6]=>
25  float(-1.2)
26  [7]=>
27  float(12)
28  [8]=>
29  float(-12)
30  [9]=>
31  float(0.000123)
32  [10]=>
33  float(1.23E-5)
34  [11]=>
35  float(123456789012)
36  [12]=>
37  float(1234567890123)
38  [13]=>
39  float(1.2345678901234567E+19)
40}
41