slot_float
Behaviour
Section titled “Behaviour”- Parse the STI_AMOUNT in the specified slot and return it as an XFL enclosed number
- Retrieves the bigint value associated with the specified slot.
- Returns an error code or the bigint value.
Definition
Section titled “Definition”int64_t slot_float ( uint32_t slot_no);function slot_float(slotno: number): ErrorCode | bigintExample
Section titled “Example”int64_t xfl = slot_float(amt_slot);const xfl = slot_float(amt_slot)Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
| slot_no | uint32_t | The slot number |
| Name | Type | Description |
|---|---|---|
| slotno | number | The slot number to retrieve the bigint value from. |
Return Code
Section titled “Return Code”| Type | Description |
|---|---|
| int64_t | The XFL enclosing number |
| Type | Description |
|---|---|
| bigint or ErrorCode | Returns an error code or the bigint value. |