Lua
C++
Edit

Floor

This functions rounds a decimal number down to the lower integer and returns the result.

Syntax

Returns

Returns the lower integer value.

Example

#include "UltraEngine.h"

using namespace UltraEngine;

int main(int argc, const char* argv[])
{
    float f = 1.6f;
    Print(Ceil(f));
    Print(Floor(f));    
    return 0;
}
Copyright © 2024 Ultra Software.
All rights reserved.