Cldr.Math.root
You're seeing just the function
root
, go back to Cldr.Math module for more information.
Calculate the nth root of a number.
number
is an integer or a Decimalnth
is a positive integer
Examples
iex> Cldr.Math.root Decimal.new(8), 3
#Decimal<2.0>
iex> Cldr.Math.root Decimal.new(16), 4
#Decimal<2.0>
iex> Cldr.Math.root Decimal.new(27), 3
#Decimal<3.0>