summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimm Friebe <thekid@php.net>2004-07-11 16:57:12 +0000
committerTimm Friebe <thekid@php.net>2004-07-11 16:57:12 +0000
commita14c66445af5535f0930ad1d59ae5d3a0cdd7baf (patch)
treeb0b6305c789ae988fd84c97467e19c78d17e19f1
parent1e6ccabd5f5941834adaabb583ea1328b9585b7e (diff)
downloadphp-git-a14c66445af5535f0930ad1d59ae5d3a0cdd7baf.tar.gz
- Added simple test for float exceeding the float precision
# See bug #29064
-rw-r--r--ext/sybase_ct/tests/test_types.phpt8
1 files changed, 6 insertions, 2 deletions
diff --git a/ext/sybase_ct/tests/test_types.phpt b/ext/sybase_ct/tests/test_types.phpt
index 03a9c0173e..735c02d843 100644
--- a/ext/sybase_ct/tests/test_types.phpt
+++ b/ext/sybase_ct/tests/test_types.phpt
@@ -21,7 +21,8 @@ Sybase-CT select and types
'.(LONG_MIN - 1).' as "integer_min_exceed",
'.(LONG_MAX).' as "integer_max",
'.(LONG_MAX + 1).' as "integer_max_exceed",
- 1.0 as "float",
+ 1.0 as "float",
+ 12345678901234567890123456789012.123456 as "large_float",
$22.36 as "money",
"Binford" as "string",
convert(datetime, "2004-01-23") as "date",
@@ -40,7 +41,8 @@ Sybase-CT select and types
-%s as "integer_min_exceed",
%s as "integer_max",
%s as "integer_max_exceed",
- 1.0 as "float",
+ 1.0 as "float",
+ 12345678901234567890123456789012.123456 as "large_float",
$22.36 as "money",
"Binford" as "string",
convert(datetime, "2004-01-23") as "date",
@@ -65,6 +67,8 @@ array(1) {
float(%s)
["float"]=>
float(1)
+ ["large_float"]=>
+ string(39) "12345678901234567890123456789012.123456"
["money"]=>
float(22.36)
["string"]=>