Answer the question
In order to leave comments, you need to log in
Where exactly will floating point math be performed in Java or C++?
There is a need to write a program that will count the matrix elements of which will be floating point numbers. I decided to implement the code in Java or C++. In this regard, the question arose where mathematical operations with floating point numbers would be more accurate. Thanks in advance.
PS If you know a PL that is more suitable for this purpose, then please share the information.
Answer the question
In order to leave comments, you need to log in
The accuracy will be the same, it does not depend on the language, but on the data type,
see float and double data types
It all depends on the processor. Intel calculates better on integer type, and AMD on floating point
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question