What is the reason that kotlins round signature `f...
# announcements
p
What is the reason that kotlins round signature
fun round(x : Float) : Float
returns float but javas Math.
int round(float a)
returns int?
l
I’d say because its more common to keep the type, but round it anyway. (Why should rounding change the type to begin with)