Skip to content

UFixedNxM

@algorandfoundation/algorand-typescript


@algorandfoundation/algorand-typescript / arc4 / UFixedNxM

Class: UFixedNxM<N, M>

Defined in: packages/algo-ts/src/arc4/encoded-types.ts:186

A fixed bit size, fixed decimal unsigned value

Extends

Type Parameters

N extends BitSize

M extends number

Constructors

new UFixedNxM()

new UFixedNxM<N, M>(v): UFixedNxM<N, M>

Defined in: packages/algo-ts/src/arc4/encoded-types.ts:194

Create a new UFixedNxM value

Parameters

v

`${number}.${number}`

A string representing the integer and fractional portion of the number

Returns

UFixedNxM<N, M>

Overrides

ARC4Encoded.constructor

Accessors

bytes

Get Signature

get bytes(): bytes

Defined in: packages/algo-ts/src/arc4/encoded-types.ts:97

Retrieve the encoded bytes for this type

Returns

bytes

Inherited from

ARC4Encoded.bytes


native

Get Signature

get native(): NativeForArc4Int<N>

Defined in: packages/algo-ts/src/arc4/encoded-types.ts:201

Retrieve the decoded native uint64 or biguint where the returned integer represents the fixed decimal value * (10 ^ M)

Returns

NativeForArc4Int<N>