This is a discussion on PHP calculation within the PHP Language forums, part of the PHP Programming Forums category; Below is my PHP code: <html> <head> <title>Example</title> </head&...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Below is my PHP code:
<html> <head> <title>Example</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 |
|
|||
|
Erwin Moller wrote:
> Below is my PHP code: > > <html> > <head> > <title>Example</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@attglobal.net ================== |
|
|||
|
On May 6, 9:50 pm, Erwin Moller <hi.steven...@gmail.com> wrote:
> Below is my PHP code: > > <html> > <head> > <title>Example</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 |
|
|||
|
chrisv wrote:
> On May 6, 9:50 pm, Erwin Moller <hi.steven...@gmail.com> wrote: >> Below is my PHP code: >> >> <html> >> <head> >> <title>Example</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@attglobal.net ================== |
|
|||
|
On Tue, 06 May 2008 22:54:51 -0400, Jerry Stuckle wrote:
> Erwin Moller wrote: >> Below is my PHP code: >> >> <html> >> <head> >> <title>Example</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 |
|
|||
|
Erwin Moller schreef:
> Below is my PHP code: > > <html> > <head> > <title>Example</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: Quote:
Also change your emailadres to the one I use here. So do not use hi.steven.tu@gmail.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 |