# FX_Mul

## Syntax

      #include <nitro/fx/fx.h>

      fx32 FX_Mul(fx32 v1, fx32 v2);

## Arguments

v1 | An `fx32`-type fixed decimal.
v2 | An `fx32`-type fixed decimal.

## Return Values

Result of multiplying v1 and v2.

## Description

This function multiplies two `fx32` types. It returns the result as an `fx32` type. The calculations are performed internally using `fx64` types. Values that are less than 1/4096 are rounded off. If this function is written in a section of THUMB code it is handled as a function call. If it is written in ARM code it is expanded as an inline function.
For this reason, if your program internally switches between ARM and THUMB code, do not use `#pragma thumb on`. Instead use `#include <twl/code16.h>`.
See the Description of Header Files page for a description of `code16.h`.

`SDK_WARNING` displays a warning message when the number of digits overflows during calculations.

## See Also

`FX_Div
FX_Sqrt
FX_Inv`

## Revision History

2009/04/28 Added description of method if switching between THUMB and ARM code.
2006/04/28 Added digit overflow check.
2004/01/19 Initial version.

CONFIDENTIAL