Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

fmax(3) [osx man page]

FMAX(3) 						   BSD Library Functions Manual 						   FMAX(3)

NAME
fmax -- return maximum value SYNOPSIS
#include <math.h> double fmax(double x, double y); long double fmaxl(long double x, long double y); float fmaxf(float x, float y); DESCRIPTION
The fmax() functions return x or y, whichever is larger. SPECIAL VALUES
If exactly one argument is a NaN, fmax() returns the other argument. If both arguments are NaNs, fmax() returns a NaN. SEE ALSO
fdim(3), fma(3), fmin(3) STANDARDS
The fmax() functions conform to ISO/IEC 9899:2011. BSD
December 11, 2006 BSD

Check Out this Related Man Page

FMAX(3) 						   BSD Library Functions Manual 						   FMAX(3)

NAME
fmax, fmaxf, fmaxl, fmin, fminf, fminl -- floating-point maximum and minimum functions LIBRARY
Math Library (libm, -lm) SYNOPSIS
#include <math.h> double fmax(double x, double y); float fmaxf(float x, float y); long double fmaxl(long double x, long double y); double fmin(double x, double y); float fminf(float x, float y); long double fminl(long double x, long double y); DESCRIPTION
The fmax(), fmaxf(), and fmaxl() functions return the larger of x and y, and likewise, the fmin(), fminf(), and fminl() functions return the smaller of x and y. They treat +0.0 as being larger than -0.0. If one argument is an NaN, then the other argument is returned. If both arguments are NaNs, then the result is an NaN. These routines do not raise any floating-point exceptions. SEE ALSO
fabs(3), fdim(3), math(3) STANDARDS
The fmax(), fmaxf(), fmaxl(), fmin(), fminf(), and fminl() functions conform to ISO/IEC 9899:1999 (``ISO C99''). HISTORY
These routines first appeared in FreeBSD 5.3. BSD
June 29, 2004 BSD
Man Page

12 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Too many hops error in sendmail

I am running SCO openserver 6 with sendmail as my mta I have a customer that sends me mail and occasionally some of them get bounced by my machine with a too many hops error. the header shows that it hops around their servers several times before getting to me and I know this is something that they... (3 Replies)
Discussion started by: garycrow
3 Replies

2. Shell Programming and Scripting

[Solved] File System Monitoring Script

Hello Scripts Guru I had created a shell script to monitor the threshold of the file system, but some where it is not giving the correct output. Request to all to hel me out I am getting the following output /dev/vg00/lvol3 mounted on 1865224 10% / is 2097152% /dev/vg00/lvol1 mounted on... (2 Replies)
Discussion started by: indrajit_renu
2 Replies

3. Shell Programming and Scripting

Passing variable from shell script to python script

I have a shell script main.sh which inturn call the python script ofdm.py, I want to pass two variables from shell script to python script for its execution. How do i achieve this ????? Eg: main.sh a=3 b=3; c= a+b exec python ofdm.py ofdm.py d=c+a Thanks in Anticipation (4 Replies)
Discussion started by: shashi792
4 Replies

4. SCO

sco unix backward compatibility on "max open file per process"

Hi How to increase maximum number of open file in "sco xenix binary" running in "sco unix openserver 5.0.7" ? I have changed "NOFILES" kernel parameter to 512, but xenix binray can't open more than 60. tnx (4 Replies)
Discussion started by: javad1_maroofi
4 Replies

5. Shell Programming and Scripting

Help me fixing event handling in csh on AIX

Hi All, I have problem with a csh script. This script simply search for a certail process id and kill that using simple kill -5 <pid>. Everything is okay untill there is valid process id trapped. But if the process id is already cleaned before the execution of the kill command, but script ends... (2 Replies)
Discussion started by: sraj142
2 Replies

6. Red Hat

Sendmail - Masquerading multiple domains with different addresses

Hello Friends, I am running Sendmail 8.14 on rhel6. I have one simple question regarding domain masquerading, i would want to masquerade different domains with different addresses. By that what i mean is that lets say i have 3 domains as home.com, example.com, test.com and i would want to... (0 Replies)
Discussion started by: Rohit Bhanot
0 Replies

7. Solaris

solaris 10u9 + sendmail 8.14.5 mailq grows, deferred messages

hello, I am using solaris 10 and sendmail 8.14.5 Main Problem i have growing (to 1500+ mails) mailq, and mailq consists of mails older then even 1 month. i have forced mailq by sendmail -q -v and messages went out. but it looks like, when messages enter to mailq they are not processed any... (0 Replies)
Discussion started by: lpic.lt
0 Replies

8. Linux

TuxOnIce stalls 3 times before resuming

I am having trouble resuming from hibernation using TuxOnIce method. The thing works, but in a very strange manner. Here's how it looks: 1. Computer boots and finds resume image and starts resume. It reads image from disk (takes ~10 seconds) Reading kernel & process data... Atomic restore.... (8 Replies)
Discussion started by: lockheed
8 Replies

9. Shell Programming and Scripting

Script returning 0

hello i write a script which calculate free space but he always is 0 thats wrong with my script? getFileSystemPerformanceData() { if ; then if grep -q "Ubuntu" /etc/issue ; then CMD="df -lP | grep -v "\/home" | grep -v "\/dev/mapper/VolGroup-lv_root"" elif grep... (5 Replies)
Discussion started by: donatas1234
5 Replies

10. Shell Programming and Scripting

Perl:: mass replacement of converting C code formats to tgmath.h

hello, i have a lot of C old code I'm updating to C11 with tgmath.h for generic math. the old code has very specific types, real and complex, like cabsl, csinhl, etc usually for simple bulk replacements i would do something simple like this perl -pi -e 's/cosl/cos/g' *.c the reference... (0 Replies)
Discussion started by: f77hack
0 Replies

11. Red Hat

Sendmail not delivering to own domain

I can send off network but can not send to anyone on network. SitRep is this the legacy mail system at work is setup as 2 servers, one is the outbound server and /etc/aliases has a list of users to deliver the mail to another server. for this instance we will call the 192.168.1.9(outgoing)... (4 Replies)
Discussion started by: sycomix
4 Replies

12. UNIX for Advanced & Expert Users

Some mails not scanned by SpamAssassin 3.4.1 w sendmail/procmail on Fedora 21

We have a user who has about a 50% missed rate on spam detection. I'm wondering if his user prefs or something is preventing scanning of all messages? SpamAssassin version 3.4.1, running on Perl version 5.20.3, sendmail Version 8.15.2 The contents of the user_prefs file: # How many points... (2 Replies)
Discussion started by: RobbieTheK
2 Replies