Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/lucid/src/mod.ts>C.Int

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.
Go to Latest
class C.Int
import { C } from "https://deno.land/x/lucid@0.10.7/src/mod.ts";
const { Int } = C;

Methods

!!! DEPRECATED !!! Returns an i32 value in case the underlying original i128 value is within the limits. Otherwise will just return an empty value (undefined).

Returns the underlying value converted to i32 if possible (within limits) JsError in case of out of boundary overflow

Returns the underlying value converted to i32 if possible (within limits) Otherwise will just return an empty value (undefined).

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).

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 string representation of the underlying i128 value directly. Might contain the minus sign (-) in case of negative value.