You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
nudt-compiler-cpp/test_float_simple.sy

19 lines
308 B

float test_float(float x, int y) {
float z = x * 2.5;
float w = y + z;
return w / 3.0;
}
int main() {
float a = 1.5;
float b = 2.5;
float c = a + b;
float d = a - b;
float e = a * b;
float f = a / b;
float g = -a;
int k = 10;
float m = k + a;
return 0;
}