What is the version of the following sentence with correct punctuation?

40 out of 5 based on 12 reviews
4.0 out of 5 based on 12 reviews