Converts BigDecimal number into RAD BigInt.
import { decimals } from "@protofire/subgraph-devkit";import { BigDecimal } from "@graphprotocol/graph-ts";const value = BigDecimal.fromString("12.5");decimals.toRad(value); // => 12500000000000000000000000000000000000000000000
the BigInt representation of the RAD BigDecimal.
the BigDecimal number.
Generated using TypeDoc
Converts BigDecimal number into RAD BigInt.
Example
Returns
the BigInt representation of the RAD BigDecimal.