Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

A doubt in EL

 
rajaraman navaneethan
Ranch Hand
Posts: 86
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi friends,
when i execute the following in a JSP,i get the following result.how is the priority of operators working in EL.please explain.

${100 < 2 div 1}- false
${100 < 2 div 0}-true

regards
Raja
 
Aruneesh Salhotra
Ranch Hand
Posts: 167
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The reason why that happens is two folds.
1. 2/0 is infinity.

Also for the order of operations.

BODMAS : the maths thing from school and we have operators.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic