Creates BigDecimal number from RAY BigInt.
import { decimals } from "@protofire/subgraph-devkit";import { BigInt } from "@graphprotocol/graph-ts";const ray = BigInt.fromString("12500000000000000000000000000");decimals.fromRay(ray); // => 12.5
the BigDecimal representation of the RAY BigInt.
the RAY BigInt number.
Generated using TypeDoc
Creates BigDecimal number from RAY BigInt.
Example
Returns
the BigDecimal representation of the RAY BigInt.