0

Ruby operator

How 5-2*3+3=2 Is it follow bodmas rule If not than what procedure ee apply to solve it in rubby

29th Dec 2017, 5:17 AM
Rishav kumar
Rishav kumar - avatar
1 Answer
+ 9
That depends upon the precedence of operators: https://ruby-doc.org/core-2.2.0/doc/syntax/precedence_rdoc.html 5-6+3 5+3-6 = 2
29th Dec 2017, 5:42 AM
Dev
Dev - avatar