Because integer division truncates (XNA's Viewport
type has integer width and height properties), and 640 / 1280 is 0.5, which truncates to zero.
Cast one of your values to a float if you want floating point division:
float _percent = _realViewport.Width / (float)this._viewport.Width;