Project

General

Profile

Revision e4811e4c include/conv.c

View differences:

include/conv.c
1
#include <math.h>
1 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); }
2 9

  
3 10
double int_to_real (int in1) { return (double)in1; }

Also available in: Unified diff