FMOD

Section: C Library Functions (3)
Index Return to Main Contents

BSD mandoc
 

NAME

fmod - floating-point remainder function  

SYNOPSIS

Fd #include <math.h> Ft double Fn fmod double x double y  

DESCRIPTION

The Fn fmod function computes the floating-point remainder of Fa x Ns / Fa y .  

RETURN VALUES

The Fn fmod function returns the value Fa x - Em i * Fa y , for some integer i such that, if Fa y is non-zero, the result has the same sign as Fa x and magnitude less than the magnitude of Fa y . If Fa y is zero, whether a domain error occurs or the Fn fmod function returns zero is implementation-defined.  

SEE ALSO

math(3)  

STANDARDS

The Fn fmod function conforms to St -ansiC .


 

Index

NAME
SYNOPSIS
DESCRIPTION
RETURN VALUES
SEE ALSO
STANDARDS

This document was created by man2html, using the manual pages.
Time: 08:43:27 GMT, September 19, 2022