Jump to content

Arithmetic evaluation: Difference between revisions

m
Line 3,721:
elsif token="-" then
get_token()
-- Factor()
Expr(3) -- makes "-3^2" yield -9 (ie -(3^2)) not 9 (ie (-3)^2).
if op!=0 then PopFactor() end if
if integer(opstack[$]) then
7,820

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.