powers library

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 on double
Adds a getter to double that checks if it's a valid integer.
Powers on num
Adds methods to get the square root of a num and to determine if a num is square.
RootToInt on int
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.