Project

General

Profile

« Previous | Next » 

Revision f044d0b0

Added by Pierre-Loïc Garoche about 9 years ago

Convertion operators

View differences:

include/conv.c
1
int real_to_int (double in1) { return (int)in1; }
2

  
3
double int_to_real (int in1) { return (double)in1; }
include/conv.h
1
int real_to_int (double in1);
2

  
3
double int_to_real (int in1);
include/conv.lusi
1
function real_to_int (in1: real) returns (out: int) prototype C;
2
function int_to_real (in1: int) returns (out: real) prototype C;

Also available in: Unified diff