The electric compressor disclosed in the above-described Patent Application Publication includes, on the circuit board, a plurality of fastening holes through which the busbars on a power supply side are fastened to the circuit board, and a plurality of fastening holes through which the circuit board is fastened to the housing. These fastening holes receive the bolts therethrough. Engineering designing of the circuit board includes tolerances of fastening positions of the bolts in a thickness direction of the circuit board. Therefore, fastening positions of a bolt may vary in the thickness direction of the circuit board with a difference within the tolerance. However, if variations in the fastening positions of the bolts adjacent to each other in the thickness direction of the circuit board with differences within the tolerances differ, the circuit board can be distorted when fastened with the bolts. When any of the busbar fastening holes and any of the housing fastening holes are located adjacent to each other on the circuit board, variations in the fastening positions in the thickness direction of the circuit board may differ between the above busbar fastening hole and the above housing fastening hole adjacent to each other, which is likely to cause a distortion of the circuit board at a position between the above busbar fastening hole and the above housing fastening hole. The circuit board distorted by fastening with the bolts may damage the circuit board itself or some soldered portions of electronic components mounted on the circuit board, which may result in a failure in electric conductivity. The distortion of the circuit board is likely to be greater as a distance between any of the busbar fastening holes and any of the housing fastening holes is shorter.