Floor (Function) — Skript

Addon: Skript · Category: Function

Syntax

floor(n: number) :: long

Description

Rounds a number down, i.e. returns the closest integer smaller than or equal to the argument.

Examples

floor(2.34) = 2
floor(2) = 2
floor(2.99) = 2

View source