Comparison with double

Правка en1, от gXa, 2015-07-21 09:22:57

If N and M are used as double, then for comparing them, can we do this:

if( N<=M ) { cout << "Yes"; }

If not then suggest what to do?

If N is long long and M is double, then for comparing them, can we do this:

if( N<=M ) { cout << "Yes"; }

If not then suggest what to do?

Comparison with double is causing me problem. So guide me what to do?

Теги comparison, double

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский gXa 2015-07-21 09:22:57 404 Initial revision (published)