h_dnnt.c

来自「在Linxu程序设计当中」· C语言 代码 · 共 20 行

C
20
字号
#include "f2c.h"#ifdef KR_headersdouble floor();shortint h_dnnt(x) doublereal *x;#else#undef abs#include "math.h"#ifdef __cplusplusextern "C" {#endifshortint h_dnnt(doublereal *x)#endif{return (shortint)(*x >= 0. ? floor(*x + .5) : -floor(.5 - *x));}#ifdef __cplusplus}#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?