Cookie Thread Act 3: The Cookie Strikes Back

:left_speech_bubble: The day is already blessed, find peace within it. β€”

1 Like

This quote is how the day is going to go

blessed? remember the last time we got blessed

1 Like

@discobot, quote.

@discobot quote

:left_speech_bubble: If you smile when no one else is around, you really mean it. β€” Andy Rooney

Me when no one else is around:
image

1 Like

imagine a programming language that decided operator precedence by how far apart you put the operators

more spaces β†’ they have lower precedence

unironically could maybe be good if parenthesis were still a thing tbhtbhtbhtbthbththb

zug is there a not stupid way to round to the not nearest number. like 8.1 rounds to 9. 8.9 rounds to 8
like i guess you could do trunc(trunc(x) + (1 - (x - trunc(x))) + 0.5) but like. this feels silly. this is silly

flipping the fraction part and doing a standard rounding algorithm feels wrong. surely theres a simpler way

trunc(x+0.5)

assuming trunc removes the fractional part

oh wait i read that wrong :joy_cat:

mmmm that’s an interesting problem

no that rounds to nearest

8.6 + 0.5 = 9.1
trunc(9.1) = 9

im looking for 8.6 outputting 8

1 Like

all the ways i’m thinking of are probably equally complicated thbhtbhtbthbthbththb

what are you cooking

What practical use this has, if you find a solution?

trunc(x) + ((trunc(2x) + 1) % 2)