]> granicus.if.org Git - php/commitdiff
Added float printing tests.
authorIlia Alshanetsky <iliaa@php.net>
Mon, 14 Oct 2002 16:31:56 +0000 (16:31 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Mon, 14 Oct 2002 16:31:56 +0000 (16:31 +0000)
ext/standard/tests/general_functions/001.phpt

index ee6d32f7f8179d8b58c57e89a538b115e34c874b..50bbb33e6395d16f0effa5046a2c1cac6d41e414 100644 (file)
@@ -46,6 +46,8 @@ if ($test == "003333.33") {
        echo("failed!\n");
 }
 
+echo sprintf("%.2f\n", "99.00");
+echo sprintf("%.2f\n", 99.00);
 ?>
 --EXPECT--
 sprintf string truncate test:   passed
@@ -53,3 +55,5 @@ sprintf padding and align test: passed
 sprintf octal and hex test:     passed
 sprintf octal binary test:      passed
 sprintf float test:             passed
+99.00
+99.00