array_setdataflt32()
Sets four byte(32-bit) float data to array.
If new data is set at the end of array, data is appended, otherwise it is overwritten.
Syntax
array_setdataflt32(hnd, pos, data);
Parameters
| hnd | Array handle. |
| pos | Data position. Special values are: |
| 0 - start position of array. |
| -1 - end position of array. |
| Other: 1,2,3… (zero based numbering is used (1st position has number zero, 2nd number one etc…). |
| data | Four byte data. |
| Return Value | Returns array size. Returned value is integer number. |
Example
hnd = array_new();
array_setdataflt32(hnd, 0, 12.34, 56.78);
result = array_printdata(hnd);
array_delete(hnd);
result:
8; 0xA4, 0x70, 0x45, 0x41, 0xB8, 0x1E, 0x63, 0x42
See also