I'm searching for the "official" mass of the sun as a unit in astrophysics. The mass of the sun can be calculated by: $M_{\odot}=\frac{4\pi^2\times(1 \ \text{ua})^3}{G\times(1\ \text{year})^2}$
So in this formula:
$\pi = 3.1415926535898...$
$1 \ \text{ua} = 149597870700 \ \text{m}$ (it's an exact definition according to the IAU 2012 resolution http://www.iau.org/static/resolutions/IAU2012_English.pdf)
$G = 6.67384\times10^{-11} \ \text{m}^3\text{kg}^{-1}\text{s}^{-2}$ according to CODATA (http://physics.nist.gov/cgi-bin/cuu/Value?bg) but $G = 6.67428\times10^{-11} \ \text{m}^3\text{kg}^{-1}\text{s}^{-2}$ according to IAU 2009 (http://maia.usno.navy.mil/NSFA/IAU2009_consts.html), so which one do we choose?
Finally, for the year here, which year to choose? Is it the same year as for the light speed: $1 \ \text{year}=365.25\times24\times3600=31557600 \ \text{s}$ (Julian year)? Or the tropical year $1 \ \text{year}=365.2421897\times24\times3600=31556925.2 \ \text{s}$ (tropical year)?
For some of the preceding values we obtain:
$M_{\odot}=\frac{4\pi^2\times(149597870700)^3}{6.67384\times10^{-11}\times(31557600)^2}=1.988622... \ \text{kg}$
which is not what gives wikipedia (http://en.wikipedia.org/wiki/Solar_mass) or google (https://www.google.fr/search?q=solar+mass)
So my question is: what are the correct preceding values, and consequently what is the current good value for the sun mass? (as some units may have been redefined since some measurements it's not that simple)