Preparing search index...
The search index is not available
uom-types - v0.0.0-development
uom-types
root
Function root
root
<
B
extends
number
,
E
extends
number
>
(
base
:
B
,
exponent
:
E
)
:
RootResult
<
B
,
E
>
Take the nth root of a number.
Type Parameters
B
extends
number
E
extends
number
Parameters
base
:
B
exponent
:
E
Returns
RootResult
<
B
,
E
>
base ** (1 / exponent)
root
<
E
extends
number
>
(
exponent
:
E
,
)
:
<
B
extends
number
>
(
base
:
Parameters
<
RootFunction
<
B
,
E
>
>
[
0
]
,
)
=>
ReturnType
<
RootFunction
<
B
,
E
>
>
Take the nth root of a number.
Type Parameters
E
extends
number
Parameters
exponent
:
E
Returns
<
B
extends
number
>
(
base
:
Parameters
<
RootFunction
<
B
,
E
>
>
[
0
]
,
)
=>
ReturnType
<
RootFunction
<
B
,
E
>
>
(base) => base ** (1 / exponent)
Settings
Member Visibility
Inherited
Theme
OS
Light
Dark
uom-types - v0.0.0-development
Loading...
Take the nth root of a number.