SPLat Logo

defFLOAT Directive

NOTICE: Our web site is being updated, but is currently experiencing extreme slowness due to host issues. Please contact us directly.
NOTICE: SPLat Controls has moved. We are now at 1/85 Brunel Rd, Seaford, 3198. map
SPLat will be shut down for the Christmas Holiday season from Friday 20 December 2024 through Tuesday 7 January 2025. We will check emails periodically and will continue to process orders but at a slower pace. Santa hat

defFLOAT Directive

The defFLOAT directive directs SPLat/PC to create a floating point variable and reserve a nominated amount of RAM to hold its data.  The variable will be initialised to 0 at power on.

Syntax:


Label defFLOAT {NumberOfFloats}

Where:

Be aware a float occupies 4 bytes of RAM, so only use them when you have to as RAM space is limited.

An error will be raised if SPLat/PC is unable to find enough free RAM.