Jump to content

[SOLVED] Need help with "simple" calculating


xwishmasterx

Recommended Posts

Hello

 

I am triyng to make a really simpel calculating. All I need is multiplitaion. I found this on the net:

 

<?php
/* tested under PHP 5.2.6-1 with Suhosin-Patch 0.9.6.2 (cli) on both i386 and amd64, Debian lenny/sid */
$a = 2863311530;
$b = 256;
$c = $a % $b;
echo "$c <br />\n";
echo (2863311530 % 256)." <br />\n"; /* directly with no variables, just to be sure */
?>

 

But this doesn't work. The result on my page is:

 

/n"; /* directly with no variables, just to be sure */ ?>

 

Not really what I was going for..:-)

 

 

Anybody knows how to create a simple x*y "script"?

 

Regards,

Casper

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.