Skip to content
Snippets Groups Projects
Commit e4811e4c authored by Hamza Bourbouh's avatar Hamza Bourbouh
Browse files

add more conversion libraries

parent 239f4429
No related branches found
No related tags found
No related merge requests found
#include <math.h>
int real_to_int (double in1) { return (int)in1; }
int _Floor (double in1) { return (int)floor(in1); }
double _floor (double in1) { return floor(in1); }
int _Ceiling (double in1) { return (int)ceil(in1); }
double _ceil (double in1) { return ceil(in1); }
int _Round (double in1) { return (int)round(in1); }
double _round (double in1) { return round(in1); }
double int_to_real (int in1) { return (double)in1; }
function real_to_int (in1: real) returns (out: int) prototype C;
function _Floor (in1: real) returns (out: int) prototype C;
function _floor (in1: real) returns (out: real) prototype C;
function _Ceiling (in1: real) returns (out: int) prototype C;
function _ceil (in1: real) returns (out: real) prototype C;
function _Round (in1: real) returns (out: int) prototype C;
function _round (in1: real) returns (out: real) prototype C;
function int_to_real (in1: int) returns (out: real) prototype C;
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment