Join Slack
Powered by
Hello! Why there are no pow functions for Long an ...
# stdlib
p
PHondogo
04/27/2021, 5:20 PM
Hello! Why there are no pow functions for Long an Int?
e
ephemient
04/27/2021, 6:09 PM
pow will overflow Int/Long very quickly, whereas Float/Double/BigInteger/BigDecimal it has a much wider range
ephemient
04/27/2021, 6:10 PM
arguably modPow could still be useful on Int/Long but that might be too specialized
2
Views
Open in Slack
Previous
Next