It's difficult to express this number directly in tons because tons can refer to different units:
* Metric tons: 1 metric ton = 1000 kilograms. Therefore, the Sun's mass is 1.989 × 1027 metric tons.
* US short tons: 1 US short ton = 2000 pounds. Therefore, the Sun's mass is 2.193 × 1030 US short tons.
It's important to specify which type of ton you're using when discussing such large numbers.