The suffix -ene tells that there is a double bond present in the molecule, and the 2 tells where in the molecule the bond is located. The molecule looks like this:
CH3-CH=CH-CH3
-ane indicates single bonds
-ene indicates at least one double bond
-yne indicates at least one triple bond