changing format for Q to be able to write values of 1e6 properly