Creates BigDecimal number from BigInt.
import { decimals } from "@protofire/subgraph-devkit";import { BigInt } from "@graphprotocol/graph-ts";const n = BigInt.fromI32(1000000);decimals.fromBigInt(n, 6); // => 1
the BigDecimal representation of the BigInt.
the BigInt number.
the number of decimals.
Generated using TypeDoc
Creates BigDecimal number from BigInt.
Example
Returns
the BigDecimal representation of the BigInt.