$VersionNumber

$VersionNumber
is a real number which gives the current Wolfram Language kernel version number, and increases in successive versions.

DetailsDetails

  • To find out if you are running under Version 6 or above, you can use the test TrueQ[$VersionNumber>=6.0].
  • A version with a particular number is typically derived from the same source code on all computer systems.

ExamplesExamplesopen allclose all

Basic Examples  (2)Basic Examples  (2)

Show the version number:

In[1]:=
Click for copyable input
Out[1]=

Define a function that uses a newer function in newer versions:

In[1]:=
Click for copyable input
In[2]:=
Click for copyable input
Out[2]=
Introduced in 1991
(2.0)