floor

open fun floor(expression: Expression): Expression

Returns the largest integer that is less than or equal to the input.

Example usage:


CircleLayer circleLayer = new CircleLayer("layer-id", "source-id");
circleLayer.setProperties(
    circleRadius(floor(pi()))
);

Return

expression

Parameters

expression

number expression to get value from

See also

<a href="https://maplibre.org/maplibre-style-spec/expressions/#abs">Style specification</a>

open fun floor(@NonNull number: Number): Expression

Returns the largest integer that is less than or equal to the input.

Example usage:


CircleLayer circleLayer = new CircleLayer("layer-id", "source-id");
circleLayer.setProperties(
    circleRadius(floor(pi()))
);

Return

expression

Parameters

number

number to get value from

See also

<a href="https://maplibre.org/maplibre-style-spec/expressions/#abs">Style specification</a>