Home  Contents

math.muldiv

Math Core4 Lua Commands

SYNOPSIS

result = math.muldiv(a, b, c)

DESCRIPTION

Calculates the function result = a * b / c.

The intermediate result of a * b is kept with 64 bit precision.

This allows more accurate fixed point arithmetic compared to simply running the term directly.