##// END OF EJS Templates
CONTROL
CONTROL

File last commit:

r203:204
r203:204
Show More
fixpoint_test.cpp
25 lines | 356 B | text/x-c | CppLexer
/*
* fixpoint_test.cpp
*
* Created on: Feb 24, 2015
* Author: aras
*/
#include "fixpoint.h"
int main(){
fix64 A;
fix64 B;
A.set_from_float(-2.5);
B.set_from_float(50.31);
fix64 C;
C=A*B;
C.power();
printf("float valout: %f\n",-2.0*500.0);
printf("C valout: %f\n",C.tofloat());
// printf("C1 valout: %f",C1.tofloat());
return 0;
}