Representing integers using doubles in C++

Правка en1, от DCSekhara, 2022-07-07 19:13:57

Suppose we are working in a setting where we only have integers and the operations that we are doing on them are multiply, add, subtract and comparisons between them

In such a scenario is it safe to replace all integers with doubles? (Safe in the sense of precision issues)

Теги c++, precision

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский DCSekhara 2022-07-07 19:13:57 322 Initial revision (published)