Project

General

Profile

Statistics
| Branch: | Tag: | Revision:

lustrec / include / conv.c @ master

History | View | Annotate | Download (429 Bytes)

1 e4811e4c Bourbouh
#include <math.h>
2 3dacdcc2 ploc
int real_to_int (double in1) { return (int)in1; }
3 e4811e4c Bourbouh
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 3dacdcc2 ploc
10
double int_to_real (int in1) { return (double)in1; }