4.0 has two sig figs., 4.00 has three sig figs. Yes, it's just that simple!
But wait, there's more...! (I'm going to stop doing that now, it's silly)
When you say, 4.0, you make a statement about your accuracy. You're saying, "It is between (about*) 3.6 to 4.4" When you say -- 4.00, you're saying it is between (again, about*) 3.96 to 4.04. As you can see, the second time around the numbers are "better" i.e. more accurate.
You can only say I measured it to 4.00, if you have an instrument that works to that many decimal places. Sometimes you have one, sometimes you don't, sometimes it's a good quality balance scale, on a shaky table, and you can't use the last decimal place, even if you want to.
Your final answer can only have as many significant figures as your worst measured value. So, for example, if you've taken ten readings, nine of them at 3 sig figs and one at 2 sig figs(lab bench was used for can-can practice that day), you report the average to two sig figs.
These are some of the early concepts on sig figs that everyone has to learn.
*Some people use different rules for rounding, just so you know