Skip to main content
Module

x/math/mod.ts>pow

Deno module for high-precision calculations and scientific computing
Latest
function pow
import { pow } from "https://deno.land/x/math@v1.1.0/mod.ts";

Returns a numeric whose value is the value of value raised to the power n. If n is negative and the result has more fraction digits than is specified by Big.DP, it will be rounded to Big.DP decimal places using rounding mode Big.RM. Throws if n is invalid.

Parameters

value: BigSource
n: number

must be a JavaScript number, not a Big number, because only small integers are allowed.

Returns

string