This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

A doubt in EL

 
rajaraman navaneethan
Ranch Hand
Posts: 86
  • 0
  • 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
  • 0
  • 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.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic