Three simple math routines that aren’t in most standard libraries that are muscle memory at this point for me: (1) integer divide rounding up; (2) lerp; (3) clamp.
-
-
Align_up? Commonly used to find out how many larger-granularity chunks are needed to fit some number of smaller things, at least that's my experience
-
I like it!
End of conversation
New conversation -
-
-
Division, but keep the change.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
.glyphosate() *hides*
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
ceiling (or ceil). Analogous to floor (integer divide round down)
-
or I guess ceil_div since you're rolling in the divide. I can't read apparently
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.