Skip to content
Narta Xaymar Dirks edited this page Oct 28, 2026 · 7 revisions

Blitz3DBlitzPlusBlitzBasic

Floor

Floor:Float32 float:Float32
Parameter Mode Type Default Description
float In Float32 required The number to round down.

Returns: The largest whole number that is not above float.

Description

Rounds down to the previous whole number and returns it as a float.

Examples

Print Floor(2.9)
Print Floor(-2.1)
2.0
-3.0

Related Commands

Cos, Exp, LeadingZeros 〔BlitzLLVM〕, Log

Home · Command Index



Differences
Language Features
BlitzBasic
Blitz3D
BlitzPlus

Clone this wiki locally