Skip to content

Real

Real is the head for the atomic floating point type.

Attributes[Real] := {Protected}

Simple examples

In[1]:= Head[1.53]
Out[1]= Real
One can force Real interperetation on an Integer by appending a decimal point:
In[2]:= Head[1.]
Out[2]= Real
Real numbers are backed by arbitrary-precision floating points:
In[3]:= 10.^5000 / 10.^4999
Out[3]= 10.

Further examples

In[1]:= MatchQ[1.53, _Real]
Out[1]= True