Most fuel tanks are designed with a void area (think the area is about 5% based on name plates on tanks at work)at the top to allow for expansion. That's why the fill cap is on the side and not the top of the semi's fuel tank(s). In the summer if you "top off" a 100 gal fuel tank and park it in the sun it may overflow. The fuel in the ground tanks is around 56 degrees if memory serves. When it heats up to 90 degrees or so on a hot sunny day the tanks have been known to overflow.
Also the diesel engine recirculates unused fuel from the injectors back to the fuel tank warming the fuel. The heat recirculated is enough the tanks will feel warm to the touch even when temps are below freezing.
Typically on a 100 gal semi fuel tank you will have about 95 gals you can put in it and the last 15 gallons/tank are the heal (depends upon who cut the suction tubes) so you will have about 80 gal useable. The heal collects sediment and water to help keep it out of the fuel system.