the important things to consider in arithmetic are the mathematical operators, but the casting dominates the lines
Hullaballoonatic
09/18/2018, 12:41 AM
especially when working with java classes that have the autocasting, so set field types to whatever number type, then in kotlin you have to constantly cast to it
h
hudsonb
09/18/2018, 1:23 AM
So in that example, you could add a
pow
extension function to
Int
right and avoid all the conversion calls? Or are ya looking for a lib that has already defined many extensions like that on numeric types?