Hacker News new | ask | show | jobs
by PaulHoule 2327 days ago
Also numerical codes can be trickier to write than you think. Rounding errors and other treacheries of the floating point approximation to the 'real' numbers can eat you alive.

If you want to do common numeric operations they might be a FORTRAN code that is battle tested and performance tuned and it usually not hard to call from C, Java, Python or some other language.

1 comments

Fortran’s numerics model is actually somewhat weaker than C’s; if precise rounding behavior is your main concern C (while still not ideal) is a better option.
For those of us not expert on the standards, could you explain in what way Fortran is weaker, and its rounding control deficient?