I have a fairly simple formula, although it includes a large number, which is basically this:
$one = 1300391053;
$two = 0.768;
// $millitime = 1.30039116114E+12
$millitime = ($one+$two)*1000;
I understand that this is technically the correct answer, but I expect to receive it 1300391053768. The purpose of this is to get time in milliseconds. I could combine the two and remove the decimal number, although this is a bit strange.
Is there a way to make this store "correctly"?
[as a side note, it seems that not all installations handle this the same way. My local PHP installation (v5.3 on MacOS) returns sci notation, but I run the identical writecodeonline.com code and get what I expect / want. ]
source
share