Advertisement
jamboljack

ARR

Jul 12th, 2017
216
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <script language="JavaScript" type="text/JavaScript">
  2. function hitungARR() {
  3.     var myForm  = document.form1;
  4.     var RNA     = parseInt(myForm.txt_Rna.value);
  5.     var RNO     = parseInt(myForm.txt_Rno.value);  
  6.     var ARR     = (RNA/RNO).toFixed(2);
  7.  
  8.     if (ARR > 0) {
  9.         myForm.txt_ARR.value = ARR;
  10.     } else {
  11.         myForm.txt_ARR.value = 0;
  12.     }
  13. }
  14. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement