FMod (open)

Returns the floating-point remainder of a value divided by another value.

Syntax

LOADLIB "wh::float.whlib";

FLOAT FUNCTION FMod(FLOAT value1, FLOAT value2)

Parameters

FLOAT value1

The first FLOAT value

FLOAT value2

The second FLOAT value. Cannot be zero.

Return value

FLOAT

The remainder of @italic value1 / @italic value2

Description

This functions calculates the division of value1 and value2 and returns the remainder.

Examples

// The FLOAT value will be 1.75
FLOAT f := FMod(7.75, 3);