Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

fmin(3) [osx man page]

FMIN(3) 						   BSD Library Functions Manual 						   FMIN(3)

fmin -- return minimum value SYNOPSIS
#include <math.h> double fmin(double x, double y); long double fminl(long double x, long double y); float fminf(float x, float y); DESCRIPTION
The fmin() functions return x or y, whichever is smaller. SPECIAL VALUES
If exactly one argument is a NaN, fmin() returns the other argument. If both arguments are NaNs, fmin() returns a NaN. SEE ALSO
fdim(3), fma(3), fmax(3) STANDARDS
The fmin() 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)

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

13 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

sh script for file received confirmation

I am new at scripting, (and this fourm- so hi guys!) and I was wondering is there something out there that I can use to do the following: I receive a file on an FTP server I would like a script to look at a specifc directory for a certain file and when it arrives it will send an email... (8 Replies)
Discussion started by: mamemlin
8 Replies

2. Shell Programming and Scripting

Shell Script for Epoch Time Conversion

Hi there I came across this script online to convert Epoch time to proper date format, but I am receiving the following error Also, I have HISTTIMEFORMAT set in user's .profile so that their history output shows time stamps. Additionally I have changed their .history location to a dedicated... (9 Replies)
Discussion started by: hedkandi
9 Replies

3. Shell Programming and Scripting

what does 'common /filter/ npass ' mean ?

Hi guy i'm quite confused about a line : common /filter/ fmin, npasses, hpfilter is it a data type ?:confused: (1 Reply)
Discussion started by: xiaofei
1 Replies

4. 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

5. 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

6. Shell Programming and Scripting

Perl : unable to frame code with Business:Hours module with example

Hi all , There are two datetimes in the below format $datetime1="2007-12-31 16:50:00"; $datetime2="2008-1-1 04:24:00"; I need to calculate time in minutes only in between the office hours.(08:00 to 18:00 ). in PERL. For the above requirement I found a module Business::Hours that... (4 Replies)
Discussion started by: scriptscript
4 Replies

7. Shell Programming and Scripting

Difference between 2 dates

Hi Friends, I have a file that has the contents like below: file1.txt 5,13/07/2013 23:25:25,14/07/2013 19:40:21 5,13/07/2013 23:25:25,14/07/2013 19:40:43 5,12/07/2013 23:50:50,13/07/2013 20:30:26 5,12/07/2013 23:20:24,13/07/2013 19:40:53 60,14/07/2013 00:00:00,14/07/2013 23:00:39... (5 Replies)
Discussion started by: vsachan
5 Replies

8. Shell Programming and Scripting

Download pdf's using wget convert to txt

wget -i genedx.txt The code above will download multiple pdf files from a site, but how can i download and convert these to .txt? I have attached the master list (genedx.txt - which contains the url and file names) as well as the two PDF's that are downloaded. I am trying to have those... (7 Replies)
Discussion started by: cmccabe
7 Replies

9. Shell Programming and Scripting

Sending formatted email with sendmail question

Hi All, Can anyone help with an email formatting question: Im using the following example to try and send a formatted email: outputFile="file.txt" ( echo "From:" echo "To:" echo "MIME-Version: 1.0" echo "Subject: Test Font" echo... (4 Replies)
Discussion started by: jonnyd
4 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. Shell Programming and Scripting

awk to select lines with maximum value of each record based on column value

Hello, I want to get the maximum value of each record separated by empty line based on the 3rd column of each row within each record? Input: A1 chr5D 634 7 82 707 A2 chr5D 637 6 82 713 A3 chr5D 637 5 82 713 A4 chr5D 626 1 82 704... (4 Replies)
Discussion started by: yifangt
4 Replies

12. UNIX for Beginners Questions & Answers

Install Zabbix agent on Solaris 11

Hello all, I'm trying to set up a few Solaris servers in Zabbix. I did some googling and RTFMing and found there where two ways. 1. Download and install pre-compiled Zabbix agent from Zabbix or 2.To download and install from opencsw I downloading the pre-compiled Zabbix agent from... (10 Replies)
Discussion started by: sph919
10 Replies

13. Shell Programming and Scripting

Outputting characters after a given string and reporting the characters in the row below --sed

Discussion started by: Xterra
10 Replies