h_nint.c
Go to the documentation of this file.
00001 #include "f2c.h"
00002 
00003 #ifdef KR_headers
00004 double floor();
00005 shortint h_nint(x) real *x;
00006 #else
00007 #undef abs
00008 #include "math.h"
00009 #ifdef __cplusplus
00010 extern "C" {
00011 #endif
00012 shortint h_nint(real *x)
00013 #endif
00014 {
00015 return (shortint)(*x >= 0 ? floor(*x + .5) : -floor(.5 - *x));
00016 }
00017 #ifdef __cplusplus
00018 }
00019 #endif


swiftnav
Author(s):
autogenerated on Sat Jun 8 2019 18:55:50