Skip to content
Narta Xaymar Dirks edited this page Nov 25, 2026 · 4 revisions

Str BlitzBasic

Str(value)
Str:String(value)

Description

Converts a number to a text. This also happens by itself when a number is joined to a text with +, but writing it out makes clear what the program does.

Examples

n = 12
Print "n = " + Str(n)
Print Str(2.5) + "!"
n = 12
2.5!

Related Commands

Short BlitzLLVM, Single BlitzLLVM, UByte BlitzLLVM, UInt BlitzLLVM

Home · Command Index


Getting started

Language

Tools


Language Features
BlitzBasic
Blitz3D
BlitzPlus
Differences

More

Clone this wiki locally