powers library Null safety
Extension methods for the num class (ints and doubles) that adds functionality for finding the square, cube, and higher order roots and powers of the number.
Extensions
 IsValidInteger

Adds a getter to
double
that checks if it's a valid integer.  Powers

Adds methods to get the square root of a
num
and to determine if anum
is square.  RootToInt

Adds methods to return the root of a value as an
int
. [...]
Exceptions / Errors
 InvalidPowerException
 An exception thrown when the number being rooted isn't a valid power of the value it's being factored by.