Skip to content

PokeFloat

Narta Xaymar Dirks edited this page Oct 28, 2026 · 5 revisions

Blitz3DBlitzPlusBlitzBasic

PokeFloat

PokeFloat:Void bank:Int32, offset:Int32, value:Float32
Parameter Mode Type Default Description
bank In Int32 required The bank to write to.
offset In Int32 required Position in bytes.
value In Float32 required The float to store.

Description

Writes a float in 4 bytes (IEEE 754 single precision).

Examples

bank = CreateBank(4)
PokeFloat bank, 0, 1.5
Print PeekFloat(bank, 0)
Print Hex$(PeekInt(bank, 0))
FreeBank bank
1.5
3FC00000

Related Commands

PeekFloat, PokeByte, PokeInt, PokeShort

Home · Command Index



Differences
Language Features
BlitzBasic
Blitz3D
BlitzPlus

Clone this wiki locally