Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions src/lab/exp10/simulation/expEvaluation.js
Original file line number Diff line number Diff line change
Expand Up @@ -608,8 +608,17 @@ window.view = {
alert('You Have Entered Wrong Expression Syntax !!!')
return false
}
else
return true
if(exp[3]=='%')
{
var x=document.getElementById('b').value
var y=document.getElementById('c').value
if(x-y==0)
{
alert('modulus by zero is not defined')
return false
}
}
return true
},
validateLogicalExpression: function (exp) {
var characterOrOperator = 0
Expand Down