1

In part of my code when I print microtime(true) it gives me a number like this 1410876482.803832 (6 decimal places), but other times it gives me a number like this 1410876484.86 (2 decimal places).

How do I get it to consistently give my 6 decimal places?

Drew LeSueur
  • 19,185
  • 29
  • 89
  • 106

1 Answers1

1

look for the setting [precision] - this controls the number of decimal places used.

Also see:

http://uk.php.net/manual/en/language.types.float.php
http://uk.php.net/microtime

Hope this helps

Devank
  • 56
  • 3