Lua
C++
Edit

Mod

This function performs a modulus operation and returns the result.

Syntax

Parameter Description
value value to determine the modulus for
divisor value to divide by

Returns

Returns the result of the modulus operation.

Example

#include "UltraEngine.h"

using namespace UltraEngine;

int main(int argc, const char* argv[])
{
    float a = 735;
    a = Mod(a, 360);
    Print(a);
    return 0;
}
Copyright © 2024 Ultra Software.
All rights reserved.