The electromagnetic spectrum extends from below the low frequencies used for modern radio communication to gamma radiation at the short- wavelength (high-frequency) end, thereby covering wavelengths from thousands of kilometers down to a fraction of the size of an atom .