Adriandmen / 05AB1E

A concise stack-based golfing language
MIT License
760 stars 48 forks source link

BUG: `ï` (cast to integer, round towards 0) doesn't work on negative string floating points #162

Open kcruijss opened 4 years ago

kcruijss commented 4 years ago

ï works as intended for both positive and negative floating points (rounding towards 0). It however doesn't work if those negative floating points are strings, which are all simply truncated instead of rounding towards 0.

Try it online to reproduce.
Came across it in this codegolf answer of mine.

PS: Not sure if this is a bug or intended behavior.