So I decided to put together a mining profitability calculator (for fun/pratice, not going online) and have a couple of questions regarding the equations commonly used. I've found equations both here and on the Bitcoin stack exchange, but the simplest was on BFL's forum. My question is regarding what some of the constants in the below equation represent:
(H x B / D) x (60 x 60 x 24 x 65535 x 10^6 / 2^48)
where H = your hash rate in Mhash/s, B = block reward in BTC & D is the current (or expected) difficulty. The BTC figures have been rounded DOWN to 8 decimal places and the USD rounded DOWN to 2 decimal places.
sourceI understand that 60 x 60 x 24 is the number of seconds in the day, but am still unclear on where 65535, 10^6, and 2^48 come into play. Any help is appreciated.