Complex and real K-theory and localization