Jump to content

[SOLVED] Help with decimal numbers!


budimir

Recommended Posts

Hey guys,

 

Can you tell me why this won't work when I enter decimal numbers?

 

<script type="text/javascript">
<!-- Begin
function startCalc5(){
interval = setInterval("calc5()",1);
}
function calc5(){
one = document.autoSumForm1.dnev.value;
two = document.autoSumForm1.tecaj.value;
document.autoSumForm1.iznos_dnevnice_kn.value = (one * 1) * (two * 1);
}
function stopCalc5(){
clearInterval(interval);
}
//  End -->
</script>

Link to comment
https://forums.phpfreaks.com/topic/124050-solved-help-with-decimal-numbers/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.