a rather easy question
| From: | d.h.g.theloosen | Date: | Sat, 28 Oct 2000 09:41:08 +0000 |
| Subject: | a rather easy question | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-22431@lists.php.net to get a copy of this message | ||
Hello,
This is a rather easy question I think, but I've just started with Php, and in
the book I use there's nothing concerning my problem.
I have two numbers:
the number of records in the table $max
and the count of the ip field $number
to give a percentage of how often the ip number exists in the table, I should
say $number/$max*100;
In the book I've reaad that when deviding entire numbers, the result is an
entire number.
But I get a result with a lot of number behind the comma.
I don't know how to get a result without numbers behind the comma, I need the
number to create a bar (the number is the width of a picture).
Greetings Emiel Theloosen