ld
来自「Algorithms for Image Processing and Comp」· 代码 · 共 56 行
TXT
56 行
@c ----------------------------------------------------------------------
@node ldexp, math
@heading @code{ldexp}
@subheading Syntax
@example
#include <math.h>
double ldexp(double val, int exp);
@end example
@subheading Return Value
This function returns @var{val} * 2 ** @var{exp}.
@subheading Example
@example
ldexp(3.5,4) == 3.5 * 16 == 56.0
@end example
@c ----------------------------------------------------------------------
@node ldiv, math
@heading @code{ldiv}
@subheading Syntax
@example
#include <stdlib.h>
ldiv_t ldiv(long numerator, long denomonator);
@end example
@subheading Description
Returns the quotient and remainder of the division @var{numberator}
divided by @var{denomonator}. The return type is as follows:
@example
typedef struct @{
long quot;
long rem;
@} ldiv_t;
@end example
@subheading Return Value
The results of the division are returned.
@subheading Example
@example
ldiv_t l = div(42, 3);
printf("42 = %ld x 3 + %ld\n", l.quot, l.rem);
@end example
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?