search

Home  >  Q&A  >  body text

php - 0-mantissa storage

Why is the timestamp converted to seconds in a format such as 25.800, where 800 is milliseconds? The problem is that there is a 0 at the end but when it is stored in the database, it is gone and becomes 25.8. This field type uses float. Is there anything I can do? Is it stored as 25.800? ?

ringa_leeringa_lee2822 days ago372

reply all(1)I'll reply

  • 怪我咯

    怪我咯2017-05-16 13:06:37

    But why do we need to save two zeros? Wouldn't it be better to convert it when taking it out?

    reply
    0
  • Cancelreply