Open radford-for-smpte opened 4 years ago
I suggest:
round(x) = floor(0.5 + x)
I suggest:
round(x) = floor(0.5 + x)
Yep that'd be great, would we need to define floor() then as well?
Yep that'd be great, would we need to define floor() then as well?
Probably, unless we refer to ISO definitions.
floor(x)
returns the the greatest integer less than or equal to x
, maybe?
The current definition doesn't make it clear that the returned value is an integer. Additionally,
INT()
is not the correct name for a function that performs rounding (and thus conflicts with the ISO definition ofint()
).Suggest to:
INT()
toROUND()