Skip to content
Narta Xaymar Dirks edited this page Oct 31, 2026 · 2 revisions

Blitz3DBlitzPlusBlitzBasic

Float

Float(value)
Float:Float32(value)

Description

Converts a number or a text to a float. Integers are not divided with a fraction (7 / 2 is 3), so convert one side first.

Examples

Print 7 / 2
Print Float(7) / 2
Print Float("1.5") + 1
3
3.5
2.5

Related Commands

Double 〔BlitzLLVM〕, EndType, Half 〔BlitzLLVM〕, Handle

Home · Command Index



Differences
Language Features
BlitzBasic
Blitz3D
BlitzPlus

Clone this wiki locally