protected function _renderVarInput_number($form, &$var, &$vars)
{
$value = $var->getValue($vars);
if ($var->type->getProperty('fraction')) {
$value = sprintf('%01.' . $var->type->getProperty('fraction') . 'f', $value);
}
$linfo = Horde_Nls::getLocaleInfo();
/* Only if there is a mon_decimal_point do the
* substitution. */
if (!empty($linfo['mon_decimal_point'])) {
$value = str_replace('.', $linfo['mon_decimal_point'], $value);
}
return sprintf('<input type="text" size="5" name="%s" id="%s" value="%s"%s />', htmlspecialchars($var->getVarName()), $this->_genID($var->getVarName(), false), $value, $this->_getActionScripts($form, $var));
}