floor

We’d love to hear your thoughts on the next set of proposals for the JavaScript language. You can find a description of the proposals here.
Please take two minutes to fill out our short survey.

Die Funktion floor bewertet eine Dezimalzahl und gibt die größte ganze Zahl zurück, die kleiner oder gleich der Dezimalzahl ist.

Syntax

floor( number )

Parameter

number

Die zu bewertende Dezimalzahl.

Rückgabewert

Die nächstgelegene ganze Zahl, die kleiner oder gleich number ist.

Spezifikationen

Gecko-Unterstützung

Unterstützt.