diff options
author | Kore Nordmann <mail@kore-nordmann.de> | 2013-12-21 10:42:52 +0100 |
---|---|---|
committer | Kore Nordmann <mail@kore-nordmann.de> | 2013-12-21 10:42:52 +0100 |
commit | 9657eef0ec32d2e2e80a8453e4954d76ebdda7fc (patch) | |
tree | c413326e9260f274b737e0aa73b2a060092983dc /src/math | |
parent | ddea34cb8ab9325adbe6a7de9acd3d500e38ebcb (diff) | |
download | zetacomponents-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.php | 2 | ||||
-rw-r--r-- | src/math/polynom.php | 6 |
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; } |