# fmin(3) [opendarwin man page]

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

NAME
fmin -- return minimum value

SYNOPSIS
#include <math.h>

double
fmin(double x, double y);

float
fminf(float x, float y);

DESCRIPTION
The fmin() and fminf() 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.

fdim(3), fma(3), fmax(3)

STANDARDS
The fmin() and fminf() functions conform to ISO/IEC 9899:1999(E).

BSD								   July 24, 2003							       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.

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

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

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

## 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:

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

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

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

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

## 8. Shell Programming and Scripting

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

## 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: oracle@inovis.com" echo "To: john.dickinson@gxs.com" echo "MIME-Version: 1.0" echo "Subject: Test Font" echo...

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

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

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

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

I have this fastq file: @M04961:22:000000000-B5VGJ:1:1101:9280:7106 1:N:0:86 GGGGGGGGGGGGCATGAAAACATACAAACCGTCTTTCCAGAAATTGTTCCAAGTATCGGCAACAGCTTTATCAATACCATGAAAAATATCAACCACACCA +test-1 GGGGGGGGGGGGGGGGGCCGGGGGFF,EDFFGEDFG,@DGGCGGEGGG7DCGGGF68CGFFFGGGG@CGDGFFDFEFEFF:30CGAFFDFEFF8CAF;;8...