lustrec/include/conv.c @ 971a4d81
1 |
#include <math.h>
|
---|---|
2 |
int real_to_int (double in1) { return (int)in1; } |
3 |
int _Floor (double in1) { return (int)floor(in1); } |
4 |
double _floor (double in1) { return floor(in1); } |
5 |
int _Ceiling (double in1) { return (int)ceil(in1); } |
6 |
double _ceil (double in1) { return ceil(in1); } |
7 |
int _Round (double in1) { return (int)round(in1); } |
8 |
double _round (double in1) { return round(in1); } |
9 |
|
10 |
double int_to_real (int in1) { return (double)in1; } |