【お知らせ】この部分は英語原文のみでの提供となります。何卒ご了承ください。
2.1.16.5.4 nint2
Contents
Description
Return the closest int to the double argument.
The arithmetic is same with Excel, but not same with c/c++.
Syntax
int nint2( double x )
Parameters
- x
- [input] double value the nearest integer to which is sought.
Return
the nearest integer to x
Examples
EX1
void nint2_ex1() { out_int("", nint2(-0.5)); // -1 }
Remark
See Also
Header to Include
origin.h