4 Actions

Why are integers subset of reals?I think it's worth mentioning that real numbers in typical programming language are fixed-size, that roughly means fixed-precision, so they are very different from real numbers as defined in mathematics. Floating-point number types are an engineering artifact without any relation to clear and well-defined mathematical concept. Google "What Every Computer Scientist Should Know About Floating-Point Arithmetic" for the details.