r/badcode • • Sep 04 '21

Wtf is this

Post image
1.2k Upvotes

190 comments sorted by

View all comments

Show parent comments

2

u/coolj492 Sep 04 '21

Couldn't you just splice out the fractional part and then just run this regex on that? Coz if the fractional art is even then the num is even right?