Hi,
I need a problem with dynamic text filds to display decimal cases.
My function is:
function decimal (result) {
final = int(result*100)/100;
var dec = (final-(parseInt(final)));
if (dec == 0) {
final = (String(parseInt(final))+".00");
}
if ((length(dec))<4) {
final = (String(parseInt(final))+"."+(dec*10)+"0");
}
return (final);
}
I have looped objects that re-display the values to text filds, but always when the second case after the "." is zero , the second case is not displayed in the result.
Should someone help me?
thanks


Reply With Quote
