numeric function

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View

Hi all,

Please, can somebody help me to understand how calculate this number in

I've got 4.7554844644e+06 and I need to have 4.7Mbits
Is there a php function can helps me?

Really thanx

Re: numeric function

*** Davide wrote/escribió (23 May 2005 02:46:16 -0700):
Quoted text here. Click to load it

1 byte = 8 bits
1024 bytes = 1 kilobyte (or KB)
1024 kilobytes = 1 megabyte (or MB)

You need to convert from an unknown unit to megabits. Let's suppose the
unknown unit is bits:

$result= 4.7554844644e+06 / (1024*1024);

If they aren't bits, do the math accordingly.

-- Álvaro G. Vicario - Burgos, Spain
-- - Mi sitio sobre programación web
-- Don't e-mail me your questions, post them to the group

Site Timeline