Gold inches up on weaker dollar