Skip to content

Commit

Permalink
cast
Browse files Browse the repository at this point in the history
  • Loading branch information
Tomáš Prokop committed Jul 31, 2017
1 parent d049d13 commit 1fb9a43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/field/NumericField.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public function toData($value) {
if (is_null($value)) {
return "";
} else {
return substr(strval((float)number_format($value, $this->getDecimalCount())), 0, $this->getLength());
return substr(strval(number_format($value, $this->getDecimalCount())), 0, $this->getLength());
}
}

Expand Down

0 comments on commit 1fb9a43

Please sign in to comment.