Skip to main content
Module

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

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_negative
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 absolute BigNum representation only in case the underlying i128 value is negative.

Otherwise nothing will be returned (undefined).

Returns

BigNum | undefined