📄 abs.3
字号:
.TH abs 3.SH Nameabs, labs \- integer absolute value.SH Syntax.nf.B #include <stdlib.h>.br.B #include <stdlib.h>.PP.B long labs(\fIi\fP).br.B long \fIi\fP;.PP.B int abs(\fIi\fP).br.B int \fIi\fP;.PP.B long labs(\fIi\fP).br.B long \fIi\fP;.fi.SH Description.NXR "abs subroutine (standard C)".NXR "labs subroutine (ANSI C)".NXR "absolute value function"The.PN absand.PN labsfunctions return the absolute value of their integer operand. The labsfunction does the same for a long int..SH RestrictionsApplying the .PN absor.PN labsfunction to the most negative integer generates aresult which is the most negative integer. That is, .EXabs(0x80000000).EE.PPreturns 0x80000000 as a result..SH See Alsofloor(3m)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -