how do the DEG tools work ?

I have a question about limma or edgeR or any other DEG tool. how the tool calculate the treat and control fold changes? for example in the first section we put control and second treat. So is it Control-Treat(in fold changes) or Treat-Control
it is just about how the DEG tool calculate fold change result