OSDN Git Service

(split) LDP v3.24 -> v3.29 の定型的な変更内容を反映。
[linuxjm/LDP_man-pages.git] / release / man3 / fmod.3
1 .\" Copyright 1993 David Metcalfe (david@prism.demon.co.uk)
2 .\" and Copyright 2008, Linux Foundation, written by Michael Kerrisk
3 .\"     <mtk.manpages@gmail.com>
4 .\"
5 .\" Permission is granted to make and distribute verbatim copies of this
6 .\" manual provided the copyright notice and this permission notice are
7 .\" preserved on all copies.
8 .\"
9 .\" Permission is granted to copy and distribute modified versions of this
10 .\" manual under the conditions for verbatim copying, provided that the
11 .\" entire resulting derived work is distributed under the terms of a
12 .\" permission notice identical to this one.
13 .\"
14 .\" Since the Linux kernel and libraries are constantly changing, this
15 .\" manual page may be incorrect or out-of-date.  The author(s) assume no
16 .\" responsibility for errors or omissions, or for damages resulting from
17 .\" the use of the information contained herein.  The author(s) may not
18 .\" have taken the same level of care in the production of this manual,
19 .\" which is licensed free of charge, as they might when working
20 .\" professionally.
21 .\"
22 .\" Formatted or processed versions of this manual, if unaccompanied by
23 .\" the source, must acknowledge the copyright and authors of this work.
24 .\"
25 .\" References consulted:
26 .\"     Linux libc source code
27 .\"     Lewine's _POSIX Programmer's Guide_ (O'Reilly & Associates, 1991)
28 .\"     386BSD man pages
29 .\" Modified 1993-07-24 by Rik Faith (faith@cs.unc.edu)
30 .\" Modified 2002-07-27 by Walter Harms
31 .\"     (walter.harms@informatik.uni-oldenburg.de)
32 .\"
33 .\" Japanese Version Copyright (c) 1997 YOSHINO Takashi
34 .\" and Copyright (c) 2008 Akihiro MOTOKI
35 .\" Translated Mon Jan 20 18:39:17 JST 1997
36 .\"       by YOSHINO Takashi <yoshino@civil.jcn.nihon-u.ac.jp>
37 .\" Updated Wed Oct 15 JST 2003 by Kentaro Shirakata <argrath@ub32.org>
38 .\" Updated 2008-09-16, Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>
39 .\"
40 .\" WORD:  remainder function ¾ê;´Ø¿ô
41 .\"
42 .TH FMOD 3  2010-09-20 "" "Linux Programmer's Manual"
43 .SH Ì¾Á°
44 fmod, fmodf, fmodl \- ÉâÆ°¾®¿ôÅÀ¾ê;´Ø¿ô
45 .SH ½ñ¼°
46 .nf
47 .B #include <math.h>
48 .sp
49 .BI "double fmod(double " x ", double " y );
50 .br
51 .BI "float fmodf(float " x ", float " y );
52 .br
53 .BI "long double fmodl(long double " x ", long double " y );
54 .fi
55 .sp
56 \fI\-lm\fP ¤Ç¥ê¥ó¥¯¤¹¤ë¡£
57 .sp
58 .in -4n
59 glibc ¸þ¤±¤Îµ¡Ç½¸¡ºº¥Þ¥¯¥í¤ÎÍ×·ï
60 .RB ( feature_test_macros (7)
61 »²¾È):
62 .in
63 .sp
64 .ad l
65 .BR fmodf (),
66 .BR fmodl ():
67 .RS 4
68 _BSD_SOURCE || _SVID_SOURCE || _XOPEN_SOURCE\ >=\ 600 || _ISOC99_SOURCE ||
69 _POSIX_C_SOURCE\ >=\ 200112L;
70 .br
71 or
72 .I cc\ -std=c99
73 .RE
74 .ad
75 .SH ÀâÌÀ
76 .BR fmod ()
77 ´Ø¿ô¤Ï \fIx\fP ¤ò \fIy\fP ¤Ç³ä¤Ã¤¿ÉâÆ°¾®¿ôÅÀ¾ê;¤ò·×»»¤¹¤ë¡£
78 ÊÖ¤êÃͤϠ\fIx\fP \- \fIn\fP * \fIy\fP ¤Ç¤¢¤ë¡£
79 ¤³¤³¤Ç¡¢\fIn\fP ¤Ï \fIx\fP / \fIy\fP ¤Î¾¦¤ò
80 ¥¼¥í¤Ë¸þ¤«¤¦Êý¸þ¤ÇÀ°¿ôÃͤ˴ݤ᤿¤â¤Î¤Ç¤¢¤ë¡£
81 .SH ÊÖ¤êÃÍ
82 À®¸ù¤¹¤ë¤È¡¢¤³¤ì¤é¤Î´Ø¿ô¤Ï \fIx\fP\ \-\ \fIn\fP*\fIy\fP ¤òÊÖ¤¹¡£
83 \fIn\fP ¤Ï¡¢ÊÖ¤êÃͤ¬
84 .I x
85 ¤ÈƱ¤¸Éä¹æ¤Ç¡¢¤½¤ÎÀäÂÐÃͤ¬
86 .I y
87 ¤ÎÀäÂÐÃͤè¤ê¤â¾®¤µ¤¯¤Ê¤ë¤è¤¦¤ÊÀ°¿ô¤Ç¤¢¤ë¡£
88
89 .I x
90 ¤«
91 .I y
92 ¤¬ NaN ¤Î¾ì¹ç¡¢NaN ¤¬ÊÖ¤µ¤ì¤ë¡£
93
94 .I x
95 ¤¬Ìµ¸ÂÂç¤Î¾ì¹ç¡¢Îΰ襨¥é¡¼ (domain error) ¤¬È¯À¸¤·¡¢
96 NaN ¤¬ÊÖ¤µ¤ì¤ë¡£
97
98 .I y
99 ¤¬ 0 ¤Î¾ì¹ç¡¢Îΰ襨¥é¡¼¤¬È¯À¸¤·¡¢
100 NaN ¤¬ÊÖ¤µ¤ì¤ë¡£
101
102 .I x
103 ¤¬ +0 (\-0) ¤Ç
104 .I y
105 ¤¬ 0 ¤Ç¤Ê¤¤¾ì¹ç¡¢+0 (\-0) ¤¬ÊÖ¤µ¤ì¤ë¡£
106 .SH ¥¨¥é¡¼
107 ¤³¤ì¤é¤Î´Ø¿ô¤ò¸Æ¤Ó½Ð¤·¤¿ºÝ¤Ë¥¨¥é¡¼¤¬È¯À¸¤·¤¿¤«¤ÎȽÄêÊýË¡¤Ë¤Ä¤¤¤Æ¤Î¾ðÊó¤Ï
108 .BR math_error (7)
109 ¤ò»²¾È¤Î¤³¤È¡£
110 .PP
111 °Ê²¼¤Î¥¨¥é¡¼¤¬È¯À¸¤¹¤ë²ÄǽÀ­¤¬¤¢¤ë¡£
112 .TP
113 Îΰ襨¥é¡¼: \fIx\fP ¤¬Ìµ¸ÂÂç
114 .I errno
115 ¤Ë
116 .B EDOM
117 ¤¬ÀßÄꤵ¤ì¤ë (¡Ö¥Ð¥°¡×¤ÎÀá¤â»²¾È)¡£
118 ÉÔÀµ (invalid) ÉâÆ°¾®¿ôÅÀÎã³°
119 .RB ( FE_INVALID )
120 ¤¬¾å¤¬¤ë¡£
121 .TP
122 Îΰ襨¥é¡¼: \fIy\fP ¤¬¥¼¥í
123 .I errno
124 ¤Ë
125 .B EDOM
126 ¤¬ÀßÄꤵ¤ì¤ë¡£
127 ÉÔÀµ (invalid) ÉâÆ°¾®¿ôÅÀÎã³°
128 .RB ( FE_INVALID )
129 ¤¬¾å¤¬¤ë¡£
130 .\" POSIX.1 documents an optional underflow error, but AFAICT it doesn't
131 .\" (can't?) occur -- mtk, Jul 2008
132 .SH ¥Ð¥°
133 .\" http://sources.redhat.com/bugzilla/show_bug.cgi?id=6784
134 ¥Ð¡¼¥¸¥ç¥ó 2.10 ¤è¤êÁ°¤Î glibc ¤Î¼ÂÁõ¤Ç¤Ï¡¢
135 ̵¸ÂÂç¤ÇÎΰ襨¥é¡¼¤¬È¯À¸¤·¤¿ºÝ¤Ë¡¢
136 .I error
137 ¤Ë
138 .B EDOM
139 ¤¬ÀßÄꤵ¤ì¤Ê¤«¤Ã¤¿¡£
140 .SH ½àµò
141 C99, POSIX.1-2001.
142 .I double
143 ÈǤδؿô¤Ï SVr4, 4.3BSD, C89 ¤Ë¤â½àµò¤·¤Æ¤¤¤ë¡£
144 .SH ´ØÏ¢¹àÌÜ
145 .BR remainder (3)