Skip to content
Narta Xaymar Dirks edited this page Nov 1, 2026 · 1 revision
BlitzLLVM

Single 〔BlitzLLVM〕

Single(value)
Single:Float32(value)

Returns: The Single, which is a Float.

Description

〔BlitzLLVM〕 This command does not exist in the original Blitz products. BlitzLLVM adds it.

Converts a number or a text to a Single, another name of Float (a 32-bit real). Single is also accepted as a type in the long notation (x:Single) wherever Float is, together with Float32, Real and Real32, and all of them are the same type.

Differences

  • Not in the originals, which only have Float.

Examples

x:Single = Single(7) / 2
Print x
Print x = Float(3.5)
3.5
1

Related Commands

Object, Short 〔BlitzLLVM〕, Str, UByte 〔BlitzLLVM〕

Home · Command Index



Differences
Language Features
BlitzBasic
Blitz3D
BlitzPlus

Clone this wiki locally