Skip to main content
Module

x/polkadot/mod.ts>typesCodec.Float

Package publishing for deno.land/x/polkadot
Go to Latest
class typesCodec.Float
implements IFloat
extends Number
import { typesCodec } from "https://deno.land/x/polkadot@0.2.33/mod.ts";
const { Float } = typesCodec;

Constructors

new
Float(
registry: Registry,
value?: AnyFloat,
unnamed 2?: Options,
)

Properties

optional
createdAtHash: IU8a
readonly
encodedLength: number
readonly
hash: IU8a
optional
initialU8aLength: number
readonly
isEmpty: boolean
optional
isStorageFallback: boolean
readonly
registry: Registry

Methods

eq(other?: unknown): boolean
inspect(): Inspect
toHex(): HexString
toHuman(): string
toJSON(): string
toNumber(): number
toPrimitive(): number
toRawType(): string
toU8a(_isBare?: boolean): Uint8Array

Static Methods

with(bitLength: 32 | 64): CodecClass<Float>