I recently discovered that there is ambiguity in the results of the C ++ fmod function and its equivalent Math.IEEERemainder in Vb.net
If we calculate fmod (4.1887902053333335 / 6.283185307, 1.0) in C ++, we get 0.6666666677277 while Math.IEEERemainder (4.1887902053333335 / 6.283185307, 1.0) in Vb.net results at -0.33333333322723, so that we find the difference in results seriously affects the result.
I am currently working on a project that has several mathematical operations, including sine, hyperbolic cosine, module, etc., which was originally in C ++, and I am tasked with converting it to Vb.net.
While most of the code can simply be inserted into and from online converters on the Internet, these mathematical uncertainties remain hidden, which leads to damage to the result.
Does anyone know of such known differences, especially for the Math class in Vb.net regarding C ++?
source
share