MicrOS
remquof.c File Reference
#include "../math.h"

Functions

float remquof (float numer, float denom, int *quot)
 Compute remainder and quotient. More...
 

Function Documentation

◆ remquof()

float remquof ( float  numer,
float  denom,
int *  quot 
)

Compute remainder and quotient.

The remquof functions compute the same remainder as the remainder functions. In the object pointed to by quo they store a value whose sign is the sign of x/y and whose magnitude is congruent modulo 2n to the magnitude of the integral quotient of x/y, where n is an implementation-defined integer greater than or equal to 3.

Parameters
numerFloating point value with the quotient numerator.
denomFloating point value with the quotient denominator.
quotPointer to an object where the quotient internally used to determine the remainder is stored as a value of type int.
Returns
The remquof functions return x REM y. If y is zero, the value stored in the object pointed to by quo is unspecified and whether a domain error occurs or the functions return zero is implementation defined.