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

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.