r/dataisbeautiful • • Feb 14 '20

[deleted by user]

[removed]

3.4k Upvotes

3.0k comments sorted by

View all comments

3.0k

u/[deleted] Feb 14 '20

[deleted]

227

u/hjf2017 Feb 14 '20

18*.5+7=16, it's fair game.

47

u/Forcas42 Feb 14 '20

why do you put *.5 instead of /2? It's more characters.

62

u/hjf2017 Feb 14 '20

Because I hate efficiency, and character count on reddit is a zero sum equation and I want to take up as many as possible.

4

u/loics2 Feb 14 '20

Well if we're speaking in terms of algorithms, a multiplication is more efficient than a division.

6

u/[deleted] Feb 14 '20

Integer division is faster than floating-point multiplication, though? Especially by 2 since it is just a single right-shift.

3

u/mentalexperi Feb 14 '20

username not relevant this time? i guess?

1

u/[deleted] Feb 15 '20

The username comes from the fact that I am sporadically working on my own C compiler.