Results 1 to 8 of 8

Thread: [resolved] unwanted formatting of numbers

Threaded View

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jul 2004
    Posts
    121

    Resolved [resolved] unwanted formatting of numbers

    Code:
    <?
    for ($z=1; $z<=100; $z++) {
    	$temp_time = (20050505113200 + $z);
    echo $temp_time.'<br>';
    }
    ?>
    Hello everybody.
    I'm trying to loop through, adding 1 to the variable $temp_time, however PHP is outputting this "2.00505051132E+013".

    Instead I would like:
    20050505113201
    20050505113202
    etc.

    Any help is appreciated.
    Last edited by solitario; May 30th, 2005 at 05:02 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width