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

NameTypeDescription
slot_nouint32_tThe slot number

Return Code

TypeDescription
int64_tThe 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