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 | |
parent | ddea34cb8ab9325adbe6a7de9acd3d500e38ebcb (diff) | |
download | zetacomponents-graph-9657eef0ec32d2e2e80a8453e4954d76ebdda7fc.zip zetacomponents-graph-9657eef0ec32d2e2e80a8453e4954d76ebdda7fc.tar.gz |
Use non-local-aware number printing everywhere
-rw-r--r-- | src/colors/radial_gradient.php | 2 | ||||
-rw-r--r-- | src/math/matrix.php | 2 | ||||
-rw-r--r-- | src/math/polynom.php | 6 | ||||
-rw-r--r-- | src/structs/coordinate.php | 2 |
4 files changed, 6 insertions, 6 deletions
diff --git a/src/colors/radial_gradient.php b/src/colors/radial_gradient.php index 65088e5..2b29863 100644 --- a/src/colors/radial_gradient.php +++ b/src/colors/radial_gradient.php @@ -169,7 +169,7 @@ class ezcGraphRadialGradient extends ezcGraphColor */ public function __toString() { - return sprintf( 'RadialGradient_%d_%d_%d_%d_%.2f_%02x%02x%02x%02x_%02x%02x%02x%02x', + return sprintf( 'RadialGradient_%d_%d_%d_%d_%.2F_%02x%02x%02x%02x_%02x%02x%02x%02x', $this->properties['center']->x, $this->properties['center']->y, $this->properties['width'], 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; } diff --git a/src/structs/coordinate.php b/src/structs/coordinate.php index 79503f3..570e824 100644 --- a/src/structs/coordinate.php +++ b/src/structs/coordinate.php @@ -85,7 +85,7 @@ class ezcGraphCoordinate extends ezcBaseStruct */ public function __toString() { - return sprintf( '( %.2f, %.2f )', $this->x, $this->y ); + return sprintf( '( %.2F, %.2F )', $this->x, $this->y ); } } |