compare double to float# Programming - 葵花宝典
g*e
1 楼
why this prints true?
#include
using namespace std;
int main() {
double a = 1.9;
float b = 1.9;
cout << (a > b ? "true" : "false") << endl;
}
#include
using namespace std;
int main() {
double a = 1.9;
float b = 1.9;
cout << (a > b ? "true" : "false") << endl;
}