| version 1.2, 1999/12/21 02:47:34 |
version 1.3, 2000/01/13 08:29:57 |
|
|
| @comment $OpenXM$ |
@comment $OpenXM: OpenXM/src/asir-doc/parts/builtin/num.texi,v 1.2 1999/12/21 02:47:34 noro Exp $ |
| \BJP |
\BJP |
| @node $B?t$N1i;;(B,,, $BAH$_9~$_H!?t(B |
@node $B?t$N1i;;(B,,, $BAH$_9~$_H!?t(B |
| @section $B?t$N1i;;(B |
@section $B?t$N1i;;(B |
|
|
| * setprec:: |
* setprec:: |
| * setmod:: |
* setmod:: |
| * lrandom:: |
* lrandom:: |
| |
* ntoint32 int32ton:: |
| @end menu |
@end menu |
| |
|
| \JP @node idiv irem,,, $B?t$N1i;;(B |
\JP @node idiv irem,,, $B?t$N1i;;(B |
| Line 1177 return to toplevel |
|
| Line 1178 return to toplevel |
|
| \EG @fref{dp_mod dp_rat}, @fref{Types of numbers}. |
\EG @fref{dp_mod dp_rat}, @fref{Types of numbers}. |
| @end table |
@end table |
| |
|
| |
\JP @node ntoint32 int32ton,,, $B?t$N1i;;(B |
| |
\EG @node ntoint32 int32ton,,, Numbers |
| |
@subsection @code{ntoint32}, @code{int32ton} |
| |
@findex ntoint32 |
| |
@findex int32ton |
| |
|
| |
@table @t |
| |
@item ntoint32(@var{n}) |
| |
@itemx int32ton(@var{int32}) |
| |
\JP :: $BHsIi@0?t$HId9f$J$7(B 32bit $B@0?t$N4V$N7?JQ49(B. |
| |
\EG :: Type-conversion between a non-negative integer and an unsigned 32bit integer. |
| |
@end table |
| |
|
| |
@table @var |
| |
@item return |
| |
\JP $BId9f$J$7(B 32bit $B@0?t$^$?$OHsIi@0?t(B |
| |
\EG unsigned 32bit integer or non-negative integer |
| |
@item n |
| |
\JP 2^32 $BL$K~$NHsIi@0?t(B |
| |
\EG non-negative interger less than 2^32 |
| |
@item int32 |
| |
\JP $BId9f$J$7(B 32bit $B@0?t(B |
| |
\EG unsigned 32bit integer |
| |
@end table |
| |
|
| |
@itemize @bullet |
| |
\BJP |
| |
@item $BHsIi@0?t(B ($B<1JL;R(B 1) $B$NId9f$J$7(B 32bit $B@0?t(B ($B<1JL;R(B 10) $B$X$NJQ49(B, |
| |
$B$^$?$O$=$N5UJQ49$r9T$&(B. |
| |
@item 32bit $B@0?t$O(B @b{OpenXM} $B$N4pK\9=@.MWAG$G$"$j(B, $B@0?t$r$=$N7?$GAw?.(B |
| |
$B$9$kI,MW$,$"$k>l9g$KMQ$$$k(B. |
| |
\E |
| |
\BEG |
| |
@item These functions do conversions between non-negative |
| |
integers (the type id 1) and unsigned 32bit integers (the type id 10). |
| |
@item An unsigned 32bit integer is a fundamental construct of @b{OpenXM} |
| |
and one often has to send an integer to a server as an unsigned 32bit |
| |
integer. These functions are used in such a case. |
| |
\E |
| |
@end itemize |
| |
|
| |
@table @t |
| |
\JP @item $B;2>H(B |
| |
\EG @item References |
| |
\JP @fref{$BJ,;67W;;(B}, @fref{$B?t$N7?(B}. |
| |
\EG @fref{Distributed computation}, @fref{Types of numbers}. |
| |
@end table |