summaryrefslogtreecommitdiffstats
path: root/src/math
diff options
context:
space:
mode:
authorKore Nordmann <mail@kore-nordmann.de>2013-12-21 10:42:52 +0100
committerKore Nordmann <mail@kore-nordmann.de>2013-12-21 10:42:52 +0100
commit9657eef0ec32d2e2e80a8453e4954d76ebdda7fc (patch)
treec413326e9260f274b737e0aa73b2a060092983dc /src/math
parentddea34cb8ab9325adbe6a7de9acd3d500e38ebcb (diff)
downloadzetacomponents-graph-9657eef0ec32d2e2e80a8453e4954d76ebdda7fc.zip
zetacomponents-graph-9657eef0ec32d2e2e80a8453e4954d76ebdda7fc.tar.gz
Use non-local-aware number printing everywhere
Diffstat (limited to 'src/math')
-rw-r--r--src/math/matrix.php2
-rw-r--r--src/math/polynom.php6
2 files changed, 4 insertions, 4 deletions
diff --git a/src/math/matrix.php b/src/math/matrix.php
index 9429460..8d03c91 100644
--- a/src/math/matrix.php
+++ b/src/math/matrix.php
@@ -516,7 +516,7 @@ class ezcGraphMatrix
$string .= '| ';
for ( $j = 0; $j < $this->columns; ++$j )
{
- $string .= sprintf( '%04.2f ', $this->get( $i, $j ) );
+ $string .= sprintf( '%04.2F ', $this->get( $i, $j ) );
}
$string .= "|\n";
}
diff --git a/src/math/polynom.php b/src/math/polynom.php
index c1fc22a..9394d15 100644
--- a/src/math/polynom.php
+++ b/src/math/polynom.php
@@ -233,13 +233,13 @@ class ezcGraphPolynom
$string .= sprintf( '%.2e ', $factor );
break;
case $factor >= 100:
- $string .= sprintf( '%.0f ', $factor );
+ $string .= sprintf( '%.0F ', $factor );
break;
case $factor >= 10:
- $string .= sprintf( '%.1f ', $factor );
+ $string .= sprintf( '%.1F ', $factor );
break;
default:
- $string .= sprintf( '%.2f ', $factor );
+ $string .= sprintf( '%.2F ', $factor );
break;
}
OpenPOWER on IntegriCloud