[PHP] From float to hour and minutes

2005-07-20 Thread Miguel Guirao
Hi!! I'm calculating the amount of time that an electric plant can operate with a certain amount of gas, let's say: A plant can work an hour with 10 galons, How long does it will work with 300 galons? hrs = (300 galons / 10 galons) = 30 (I could also have a float here!!!) Then, I have the

Re: [PHP] From float to hour and minutes

2005-07-20 Thread Philip Hallstrom
I'm calculating the amount of time that an electric plant can operate with a certain amount of gas, let's say: A plant can work an hour with 10 galons, How long does it will work with 300 galons? hrs = (300 galons / 10 galons) = 30 (I could also have a float here!!!) Then, I have the time the