xwishmasterx Posted August 14, 2008 Share Posted August 14, 2008 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 https://forums.phpfreaks.com/topic/119642-solved-need-help-with-simple-calculating/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.