Skip to main content
Open topic with navigation CAPL Functions » General » Function Overview » _floor

_floor

Valid for: CANoe DE • CANoe:lite DE • CANoe4SW DE • CANoe4SW:lite DE

Function Syntax

float _floor(float x);

Description

Calculates the floor of a value, i.e. the largest integer smaller or equal to the value.

Parameters

  • x: Value of which the floor shall be calculated.

Return Values

Floor of x.

Example

float x;
x = _floor(3.6); // x == 3.0
_ceil_round