I recently discovered Num.divTrunc and Num.divCeil which are quite useful functions. I think I would have discovered them sooner if the names were more consistent with the other functions.
Num.divTrunc instead of Num.divFloor to match Num.floor?Num.divCeil instead of Num.divCeiling to match Num.ceiling? Or maybe Num.ceil instead?it's trunc instead of floor because it truncates everything after the decimal point rather than flooring (truncating 1.2 and -1.2 gives 1 and -1, but flooring them gives 1 and -2)
I could see an argument for renaming it to Num.ceil :thumbs_up:
Thanks for the clarification. It makes more sense now.
Ryan Bates has marked this topic as resolved.
Last updated: Nov 09 2025 at 12:14 UTC