Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

fdimf(3) [opendarwin man page]

FDIM(3) 						   BSD Library Functions Manual 						   FDIM(3)

NAME
fdim -- return difference if positive, 0 otherwise SYNOPSIS
#include <math.h> double fdim(double x, double y); float fdimf(float x, float y); DESCRIPTION
The fdim() and fdimf() functions return the "positive difference" between their arguments: x - y if x > y, +0 if x is less than or equal to y. SEE ALSO
fma(3), fmax(3), fmin(3) STANDARDS
The fdim() and fdimf() functions conform to ISO/IEC 9899:1999(E). BSD
July 24, 2003 BSD

Check Out this Related Man Page

FDIM(3) 						     Linux Programmer's Manual							   FDIM(3)

NAME
fdim, fdimf, fdiml - positive difference SYNOPSIS
#include <math.h> double fdim(double x, double y); float fdimf(float x, float y); long double fdiml(long double x, long double y); Link with -lm. Feature Test Macro Requirements for glibc (see feature_test_macros(7)): fdimf(), fdiml(): _XOPEN_SOURCE >= 600 || _ISOC99_SOURCE; or cc -std=c99 DESCRIPTION
These functions return the positive difference, max(x-y,0), between their arguments. RETURN VALUE
On success, these functions return the positive difference. If x or y is a NaN, a NaN is returned. If the result overflows, a range error occurs, and the functions return HUGE_VAL, HUGE_VALF, or HUGE_VALL, respectively. ERRORS
See math_error(7) for information on how to determine whether an error has occurred when calling these functions. The following errors can occur: Range error: result overflow An overflow floating-point exception (FE_OVERFLOW) is raised. These functions do not set errno. VERSIONS
These functions first appeared in glibc in version 2.1. CONFORMING TO
C99, POSIX.1-2001. SEE ALSO
fmax(3) COLOPHON
This page is part of release 3.25 of the Linux man-pages project. A description of the project, and information about reporting bugs, can be found at http://www.kernel.org/doc/man-pages/. 2008-08-11 FDIM(3)
Man Page

2 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Shopt -s histappend

What is the point of this? Whenever I close my shell it appends to the history file without adding this. I have never seen it overwrite my history file. # When the shell exits, append to the history file instead of overwriting it shopt -s histappend (3 Replies)
Discussion started by: cokedude
3 Replies

2. OS X (Apple)

Undeletable file

Greetings, I'm trying to delete a file with a weird name from within Terminal on a Mac. It's a very old file (1992) with null characters in the name: “␀␀Word FinderÂŽ Plus™”. Here are some examples of what I've tried: 12FX009:5 dpontius$ ls ␀␀Word FinderÂŽ Plus™ 12FX009:5 dpontius$ rm... (29 Replies)
Discussion started by: dpontius
29 Replies