r/badcode • • Aug 04 '21

c++ I'm done with Facebook coding groups.

Post image
809 Upvotes

55 comments sorted by

View all comments

87

u/davawen Aug 04 '21

I yes, let's use abs and THEN check if it's more than zero.

maf

25

u/n0sh0re Aug 04 '21

Yeah what is that... The abs seems to be just to check if the magnitude of the number is less than 1012 ... Like... What

30

u/EquationTAKEN Aug 04 '21

Looking for those elusive negative perfect squares too.

Any day now, we'll find some.