fmax.3 (e880667b920cc7061ddd30aca9bff37c385516fa) fmax.3 (4f82cb46c4eafade0aa46b4471ed59711a2c92ff)
1.\" Copyright (c) 2004 David Schultz <das@FreeBSD.org>
2.\" All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\" notice, this list of conditions and the following disclaimer.

--- 29 unchanged lines hidden (view full) ---

38.Sh LIBRARY
39.Lb libm
40.Sh SYNOPSIS
41.In math.h
42.Ft double
43.Fn fmax "double x" "double y"
44.Ft float
45.Fn fmaxf "float x" "float y"
1.\" Copyright (c) 2004 David Schultz <das@FreeBSD.org>
2.\" All rights reserved.
3.\"
4.\" Redistribution and use in source and binary forms, with or without
5.\" modification, are permitted provided that the following conditions
6.\" are met:
7.\" 1. Redistributions of source code must retain the above copyright
8.\" notice, this list of conditions and the following disclaimer.

--- 29 unchanged lines hidden (view full) ---

38.Sh LIBRARY
39.Lb libm
40.Sh SYNOPSIS
41.In math.h
42.Ft double
43.Fn fmax "double x" "double y"
44.Ft float
45.Fn fmaxf "float x" "float y"
46.Ft "long double"
46.Ft long double
47.Fn fmaxl "long double x" "long double y"
48.Ft double
49.Fn fmin "double x" "double y"
50.Ft float
51.Fn fminf "float x" "float y"
47.Fn fmaxl "long double x" "long double y"
48.Ft double
49.Fn fmin "double x" "double y"
50.Ft float
51.Fn fminf "float x" "float y"
52.Ft "long double"
52.Ft long double
53.Fn fminl "long double x" "long double y"
54.Sh DESCRIPTION
55The
56.Fn fmax ,
57.Fn fmaxf ,
58and
59.Fn fmaxl
60functions return the larger of

--- 4 unchanged lines hidden (view full) ---

65.Fn fmin ,
66.Fn fminf ,
67and
68.Fn fminl
69functions return the smaller of
70.Fa x
71and
72.Fa y .
53.Fn fminl "long double x" "long double y"
54.Sh DESCRIPTION
55The
56.Fn fmax ,
57.Fn fmaxf ,
58and
59.Fn fmaxl
60functions return the larger of

--- 4 unchanged lines hidden (view full) ---

65.Fn fmin ,
66.Fn fminf ,
67and
68.Fn fminl
69functions return the smaller of
70.Fa x
71and
72.Fa y .
73They treat
74.Li +0.0
73.Li +0.0
75as being larger than
74is treated as being larger than
76.Li -0.0 .
77If one argument is an \*(Na, then the other argument is returned.
78If both arguments are \*(Nas, then the result is an \*(Na.
79These routines do not raise any floating-point exceptions.
80.Sh SEE ALSO
81.Xr fabs 3 ,
82.Xr fdim 3 ,
83.Xr math 3

--- 14 unchanged lines hidden ---
75.Li -0.0 .
76If one argument is an \*(Na, then the other argument is returned.
77If both arguments are \*(Nas, then the result is an \*(Na.
78These routines do not raise any floating-point exceptions.
79.Sh SEE ALSO
80.Xr fabs 3 ,
81.Xr fdim 3 ,
82.Xr math 3

--- 14 unchanged lines hidden ---