chansek
06/12/2018, 7:03 PMShawn
06/12/2018, 7:09 PMNeed some helpwe know. thats why you’re posting a question in #general
2.0.pow(3)
with a .toInt()
if you need it - but maybe the result would be better represented as a long or a BigInteger, depends on the size of your input, and the compiler can’t account for thatkotlin.math.pow
just delegates to java.lang.Math
on the JVMinteger power java
you get this 😒tackoverflow: post https://stackoverflow.com/questions/8071363/calculating-powers-of-integerschansek
06/12/2018, 7:18 PMShawn
06/12/2018, 7:20 PMSystem.out.println(2 ^ 3);
print out on your machinedalexander
06/12/2018, 7:21 PMxor
in Kotlin.chansek
06/12/2018, 7:29 PMbissell
06/12/2018, 7:33 PMkarelpeeters
06/12/2018, 9:09 PM