Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
Taniwha
· 4y ago · 0 comments
does it work for unary +/-?
Comments
[–]
truly
4y ago
Almost: +13 would be rewritten to ((()))+(((13))) and -13 to ((()))-(((13))). If you interpret the empty expression as 0, perhaps it would work out.
Good question!
[–]
tgv
4y ago
There are other unary operators (!, ~), although I'm almost sure FORTRAN didn't support those, but 1 - -13 => 1 - 0 - 13 = -12 would fail, wouldn't it?
[–]
Taniwha
OP
4y ago
No, not in Fortran of that era ~ was pretty much missing from most card punch keyboards