200456 - milliseconds 3.34093333 are minutes and seconds in 200456 milliseconds

How in PHP to get from 3.3056 milliseconds to get 3.34 ?

Closed due to the fact that it is necessary to reformulate the question so that it was possible to give an objectively correct answer to the participants by Edward , LFC , 0xdb , Ipatiev , aleksandr barakin on January 27 at 15:22 .

The question gives rise to endless debates and discussions based not on knowledge, but on opinions. To get an answer, rephrase your question so that it can be given an unambiguously correct answer, or delete the question altogether. If the question can be reformulated according to the rules set out in the certificate , edit it .

  • 1 second = 1000 milliseconds, 1 minute = 60 seconds 200456/1000 = 200.456 200.456 / 60 = 3.3409 (3) or 3.34093333. For information. - Adrian Golub
  • 3,34093333 is NOT "minutes and seconds", but just minutes. Minutes and seconds will be 3.20. - Ipatiev

1 answer 1

It is necessary to divide milliseconds by 60000 .

 $minutes = round(200456 / 60000, 2);