Gold climbed to a three-month high on Tuesday as a softer dollar and escalating violence in Iraq increased the metal's appeal, boosting inflows into the top bullion-backed fund. Spot gold climbed to $1,332.10 an ounce, its highest since March 24, and was flat at $1,327.00 by 0621 GMT. It gained nearly 1 percent in the previous session. The metal posted its second straight quarterly gain for the quarter that ended on Monday, and June was also its best month since February.