1 .\" Copyright 2002 Walter Harms (walter.harms@informatik.uni-oldenburg.de)
2 .\" and Copyright 2008, Linux Foundation, written by Michael Kerrisk
3 .\" <mtk.manpages@gmail.com>
4 .\" Distributed under GPL
5 .\" based on glibc infopages
8 .\" Japanese Version Copyright (c) 2005 Yuichi SATO
9 .\" and Copyright (c) 2008 Akihiro MOTOKI
10 .\" Translated Tue Feb 1 06:39:08 JST 2005
11 .\" by Yuichi SATO <ysato444@yahoo.co.jp>
12 .\" Updated 2008-09-16, Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>
14 .TH REMQUO 3 2010-09-20 "GNU" "Linux Programmer's Manual"
17 .\"O remquo, remquof, remquol \- remainder and part of quotient
18 remquo, remquof, remquol \- 商の一部と剰余を求める
24 .BI "double remquo(double " x ", double " y ", int *" quo );
26 .BI "float remquof(float " x ", float " y ", int *" quo );
28 .BI "long double remquol(long double " x ", long double " y ", int *" quo );
31 .\"O Link with \fI\-lm\fP.
35 .\"O Feature Test Macro Requirements for glibc (see
36 .\"O .BR feature_test_macros (7)):
38 .RB ( feature_test_macros (7)
47 _XOPEN_SOURCE\ >=\ 600 || _ISOC99_SOURCE ||
48 _POSIX_C_SOURCE\ >=\ 200112L;
56 .\"O These functions compute the remainder and part of the quotient
66 .\"O A few bits of the quotient are stored via the
69 .\"O The remainder is returned as the function result.
75 .\"O The value of the remainder is the same as that computed by the
76 .\"O .BR remainder (3)
82 .\"O The value stored via the
84 .\"O pointer has the sign of
86 .\"O and agrees with the quotient in at least the low order 3 bits.
90 の符号と最低でも商の下位 3 ビットが含まれる。
92 .\"O For example, \fIremquo(29.0,\ 3.0)\fP returns \-1.0 and might store 2.
93 .\"O Note that the actual quotient might not fit in an integer.
94 たとえば \fIremquo(29.0,\ 3.0)\fP は \-1.0 を返し、
95 (訳注: quo の指しているものには) 2 が格納される。
96 実際の商が整数値にならない点に注意すること。
97 .\"O .\" A possible application of this function might be the computation
98 .\"O .\" of sin(x). Compute remquo(x, pi/2, &quo) or so.
99 .\" この関数を利用するアプリケーションとしては、
100 .\" sin(x) の計算などがあるかもしれない。
101 .\" sin(x) では remquo(x, pi/2, &quo) などを計算する。
103 .\"O .\" glibc, UnixWare: return 3 bits
104 .\"O .\" MacOS 10: return 7 bits
105 .\" glibc, UnixWare: 3 ビットを返す。
106 .\" MacOS 10: 7 ビットを返す。
107 .\"O .SH RETURN VALUE
109 .\"O On success, these functions return the same value as
110 .\"O the analogous functions described in
111 .\"O .BR remainder (3).
120 .\"O is a NaN, a NaN is returned.
132 .\"O a domain error occurs, and
133 .\"O a NaN is returned.
138 領域エラー (domain error) が発生し、NaN が返される。
146 .\"O a domain error occurs, and
147 .\"O a NaN is returned.
152 領域エラー (domain error) が発生し、NaN が返される。
156 .\"O .BR math_error (7)
157 .\"O for information on how to determine whether an error has occurred
158 .\"O when calling these functions.
159 これらの関数を呼び出した際にエラーが発生したかの判定方法についての情報は
163 .\"O The following errors can occur:
166 .\"O Domain error: \fIx\fP is an infinity or \fIy\fP is 0, \
167 .\"O and the other argument is not a NaN
168 領域エラー (domain error): \fIx\fP が無限大か \fIy\fP が 0 で、 \
173 .\"O An invalid floating-point exception
174 .\"O .RB ( FE_INVALID )
180 .\"O These functions do not set
185 .\" FIXME . Is it intentional that these functions do not set errno?
186 .\" Bug raised: http://sources.redhat.com/bugzilla/show_bug.cgi?id=6802
189 .\"O These functions first appeared in glibc in version 2.1.
190 これらの関数は glibc バージョン 2.1 で初めて登場した。
191 .\"O .SH "CONFORMING TO"