Scratch for Java

Operators::floorOf()

This always rounds the number down to the greatest whole number less than or equal to the number. For example, floor(1.73) = 1 and floor(-2.74) = -3.

Examples

View on GitHub

Syntax

Java

.floorOf(x)

Scratch

([floor v] of (x))

Parameters

Name Data Type Description
x double a value

Return

double

floorOf()

Create Shareable URL

Select Sections