Skip to content
Narta Xaymar Dirks edited this page Oct 27, 2026 · 1 revision

Blitz3DBlitzPlusBlitzBasic

Abs

Abs(value)

Description

The size of a number without its sign, so -3 and 3 both give 3. A float stays a float and an integer stays an integer. For an unsigned type, the number is never negative to begin with.

Examples

Print Abs(-3)
Print Abs(2.5)
Print Abs(-2.5)
3
2.5
2.5

Related Commands

ACos, ASin

Home · Command Index



Differences
Language Features
BlitzBasic
Blitz3D
BlitzPlus

Clone this wiki locally