Skip to main content
Module

x/lucid/src/core/wasm_modules/cardano_multiplatform_lib_web/cardano_multiplatform_lib.d.ts>Int#as_positive

Lucid is a library, which allows you to create Cardano transactions and off-chain code for your Plutus contracts in JavaScript, Deno and Node.js.
Very Popular
Go to Latest
method Int.prototype.as_positive
import { Int } from "https://deno.land/x/lucid@0.7.9/src/core/wasm_modules/cardano_multiplatform_lib_web/cardano_multiplatform_lib.d.ts";

BigNum can only contain unsigned u64 values

This function will return the BigNum representation only in case the underlying i128 value is positive.

Otherwise nothing will be returned (undefined).

Returns

BigNum | undefined