CustomVariableNumber: do not let locales influence...

...float rendering
This commit is contained in:
Thomas Gelf 2015-11-06 09:33:42 +01:00
parent a74381ebc9
commit df3b23834c

View File

@ -37,6 +37,11 @@ class CustomVariableNumber extends CustomVariable
public function toConfigString()
{
return (string) $this->value;
if (is_int($this->value)) {
return (string) $this->value;
} else {
// Hint: this MUST NOT respect locales
return sprintf('%F', $this->value);
}
}
}