Jump to content

Integer define ;S


quelle

Recommended Posts

the round function goes on an integer as i read 5 minutes ago, but if there is no other way it not a big deal rly ... (for ex. if $score = 60, $p=$score/110, $postotak=$p*100, $postotak = 54%). Btw my

function postotak(){
$p = $bodovi / 100;
$postotak = $p * 100;
$postotak = $postotak + "%";

return $postotak;
}

It does return nothing why  :confused:

Link to comment
https://forums.phpfreaks.com/topic/222330-integer-define-s/#findComment-1150045
Share on other sites

hmm lol look at this

function postotak($bodovi){
$p = $bodovi / 100;
$postotak = $p * 100;
$postotak = $postotak . "%";

return $postotak;
}

Warning: Missing argument 1 for postotak(), called in D:\xampp\htdocs\vjezbe\kviz - seica\rezultati.php on line 35 and defined in D:\xampp\htdocs\vjezbe\kviz - seica\rezultati.php on line 28 - THIS IS THE ERROR I GOT BY PASSING THE VARIABLE TO THE FUNCTION

 

28th line is the first line of this function

Link to comment
https://forums.phpfreaks.com/topic/222330-integer-define-s/#findComment-1150055
Share on other sites

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.