Open kcruijss opened 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.
ï
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.