Skip to content

Comment on Figuring out round, floor and ceil with integer divisionparent

Comments

The biggest annoyance with P3’s round is that you can’t specify a rounding mode.

Well that and it returns an integer when rounding to 0 digits, but that’s less of an issue since the langage also switched to “true division”.

You can specify a rounding mode if you use decimals instead of floats

Yeah but that's let useful if you're trying to round floats.

less* obviously, not sure how I fat fingered that one.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.