PHP calculation

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Erwin Moller

    PHP calculation

    Below is my PHP code:

    <html>
    <head>
    <title>Exampl e</title>
    </head>
    <body>

    <?php

    $str="This is a sentence";
    $number=(9.94+0 .6)/10;
    echo "Hello, youtube $number";
    ?>

    </body>
    </html>

    After I run this program, I get a result

    Hello, youtube 1.054

    Why is it 1.054 rather than 1?
    Please give me some help.

    Best Regards
    Erwin Moller
  • Jerry Stuckle

    #2
    Re: PHP calculation

    Erwin Moller wrote:
    Below is my PHP code:
    >
    <html>
    <head>
    <title>Exampl e</title>
    </head>
    <body>
    >
    <?php
    >
    $str="This is a sentence";
    $number=(9.94+0 .6)/10;
    echo "Hello, youtube $number";
    ?>
    >
    </body>
    </html>
    >
    After I run this program, I get a result
    >
    Hello, youtube 1.054
    >
    Why is it 1.054 rather than 1?
    Please give me some help.
    >
    Best Regards
    Erwin Moller
    >
    Because you're screwed up.

    --
    =============== ===
    Remove the "x" from my email address
    Jerry Stuckle
    JDS Computer Training Corp.
    jstucklex@attgl obal.net
    =============== ===

    Comment

    • chrisv

      #3
      Re: PHP calculation

      On May 6, 9:50 pm, Erwin Moller <hi.steven...@g mail.comwrote:
      Below is my PHP code:
      >
      <html>
      <head>
      <title>Exampl e</title>
      </head>
      <body>
      >
      <?php
      >
      $str="This is a sentence";
      $number=(9.94+0 .6)/10;
      echo "Hello, youtube $number";
      ?>
      >
      </body>
      </html>
      >
      After I run this program, I get a result
      >
      Hello, youtube 1.054
      >
      Why is it 1.054 rather than 1?
      Please give me some help.
      >
      Best Regards
      Erwin Moller
      (9.94+0.6)/10;

      = 10.54/10
      = 1.054

      i don't think php is the problem

      Comment

      • Jerry Stuckle

        #4
        Re: PHP calculation

        chrisv wrote:
        On May 6, 9:50 pm, Erwin Moller <hi.steven...@g mail.comwrote:
        >Below is my PHP code:
        >>
        ><html>
        > <head>
        > <title>Exampl e</title>
        > </head>
        > <body>
        >>
        > <?php
        >>
        > $str="This is a sentence";
        > $number=(9.94+0 .6)/10;
        > echo "Hello, youtube $number";
        > ?>
        >>
        > </body>
        ></html>
        >>
        >After I run this program, I get a result
        >>
        >Hello, youtube 1.054
        >>
        >Why is it 1.054 rather than 1?
        >Please give me some help.
        >>
        >Best Regards
        > Erwin Moller
        >
        (9.94+0.6)/10;
        >
        = 10.54/10
        = 1.054
        >
        i don't think php is the problem
        >
        >
        He's a troll using Erwin's good name.

        --
        =============== ===
        Remove the "x" from my email address
        Jerry Stuckle
        JDS Computer Training Corp.
        jstucklex@attgl obal.net
        =============== ===

        Comment

        • Peter H. Coffin

          #5
          Re: PHP calculation

          On Tue, 06 May 2008 22:54:51 -0400, Jerry Stuckle wrote:
          Erwin Moller wrote:
          >Below is my PHP code:
          >>
          ><html>
          > <head>
          > <title>Exampl e</title>
          > </head>
          > <body>
          >>
          > <?php
          >>
          > $str="This is a sentence";
          > $number=(9.94+0 .6)/10;
          > echo "Hello, youtube $number";
          > ?>
          >>
          > </body>
          ></html>
          >>
          >After I run this program, I get a result
          >>
          >Hello, youtube 1.054
          >>
          >Why is it 1.054 rather than 1?
          >Please give me some help.
          >>
          >Best Regards
          > Erwin Moller
          >>
          >
          Because you're screwed up.
          And hasn't sorted out basic arithmetic...

          --
          "The bullets are just his way of saying 'Keep it down, I've got a
          hangover.'"
          Kiki to Dr. Schlock, as seen in http://pics.sluggy.com/comics/000108a.gif

          Comment

          • Erwin Moller

            #6
            Re: PHP calculation

            Erwin Moller schreef:
            Below is my PHP code:
            >
            <html>
            <head>
            <title>Exampl e</title>
            </head>
            <body>
            >
            <?php
            >
            $str="This is a sentence";
            $number=(9.94+0 .6)/10;
            echo "Hello, youtube $number";
            ?>
            >
            </body>
            </html>
            >
            After I run this program, I get a result
            >
            Hello, youtube 1.054
            >
            Why is it 1.054 rather than 1?
            Please give me some help.
            >
            Best Regards
            Erwin Moller
            Dear Erwin imposter,

            You still do it the wrong way!
            Pay some attention please.
            If you want to mimic me the right way, end your silly postings with this:

            Regards,
            Erwin Moller
            Not 'Best Regards'!

            Also change your emailadres to the one I use here.
            So do not use hi.steven.tu@gm ail.com.

            In that way you can maybe fool a few people in here who don't know how
            to do any futher checks (or don't care to do more checks).

            Jeez, how hard can it be?
            You must be very new at this.

            Regards,
            Erwin Moller

            Comment

            Working...