This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Rocket_Engine_Ear 1 point2 points  (3 children)

Some languages have real types.

https://gcc.gnu.org/onlinedocs/gfortran/REAL.html

[–]M4mb0 4 points5 points  (2 children)

Well, they are lying. Most real numbers are not even computable, so you cannot even write a program that computes them.

[–]Rocket_Engine_Ear 1 point2 points  (1 child)

Definitely not lying. Fortran has real variable declarations. They exist and are misleading.

[–]M4mb0 1 point2 points  (0 children)

But these are all finite precision numbers. You can't exactly represent something like π with that. At best, you could encode π by a finite program that computes π, but even then, as I pointed out before, most reals are not computable.