#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2000
    Location
    Soignies, HT, Belgium
    Posts
    4
    Rep Power
    0
    Hello,

    Here follow my script:

    <?
    $a = (0.5);
    $b = (1.6);
    $c = $a + $b;
    ECHO $c;
    ?>

    This is the result:

    1

    It adds 0 to 1 ($a and $b truncated) and prints $c.

    Who will help me? Are there parameters to modify in my configuration?

    I'm using php4, mySQL and Apache.

    Many thanks in advance )

    Friendly, Seb

    ------------------
  2. #2
  3. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2000
    Posts
    17
    Rep Power
    0
    You could try doing:

    <?
    $a = 0.5;
    $b = 1.6;
    $c = ($a + $b);
    ECHO $c;
    ?>

Similar Threads

  1. problems with strings and addition
    By Porky in forum ASP Programming
    Replies: 3
    Last Post: February 10th, 2004, 09:07 AM
  2. Replies: 1
    Last Post: November 18th, 2003, 09:59 AM
  3. date addition problem
    By strange1 in forum PHP Development
    Replies: 3
    Last Post: October 6th, 2003, 04:01 PM
  4. Auto addition of 2 rows/PHP/MySQL
    By CES in forum MySQL Help
    Replies: 1
    Last Post: July 27th, 2002, 02:00 PM
  5. OOP & tie
    By Flame in forum Perl Programming
    Replies: 1
    Last Post: August 8th, 2001, 10:45 AM

IMN logo majestic logo threadwatch logo seochat tools logo