NOTE: This is from a Joomla component.
The Problem: When I enter, say, 4.90 into the price input box and hit save the price becomes 5, etc. I need for the value to remain as entered.
I've tracked down this block of code in the form.php looks like it might be the right one, but I can't figure out what needs to change:
function toTransFloat( input )
{
value = input.value;
if ( value != null && value.length != 0 )
value = value.replace( ',' , '.' );
else
return false;
input.value = ( isNaN( parseFloat( value ) ) == false ? parseFloat( value ) : "" );
return input.value;
}
help ... ?