Parse the STI_AMOUNT in the specified slot and return it as an XFL enclosed number

Behaviour

  • Parse the STI_AMOUNT in the specified slot and return it as an XFL enclosed number

Definition

int64_t slot_float (
    uint32_t slot_no
);

Example

int64_t xfl =
    slot_float(amt_slot);

Parameters

Name

Type

Description

slot_no

uint32_t

The slot number

Return Code

Type

Description

int64_t

The XFL enclosing number

If negative, an error:
DOESNT_EXIST

  • the specified slot does not contain any object or it is an invalid slot

NOT_AN_AMOUNT

  • the specified slot does not contain an STI_AMOUNT object