Re: [PHP] Why doesn't working with array's ever stick in my thick head?

[email protected] (tedd)
Newsgroups php.general
Message-ID <p0624080ac44a3b61c818@[192.168.1.101]>
At 1:29 PM -0400 5/9/08, Jason Pruim wrote:
>Hey tedd
>
>On May 9, 2008, at 1:21 PM, tedd wrote:
>
>>At 12:56 PM -0400 5/9/08, Jason Pruim wrote:
>>>Hi Everyone,
>>>
>>>SO it's friday, I'm tired, and I can't seem to think straight... I 
>>>am attempting to do some very basic math with some arrays... 
>>>Here's the pseudo code that I'm working with:
>>>
>>>NumberOfPieces * PieceWeight = TotalWeight
>>>
>>>explode total weight to get tenth's of pounds, then divide tenth's 
>>>of pounds by 16 to grab ounces.
>>
>>What??
>>
>>Why do you want tenth's of pounds? Just divide pounds by 16 and 
>>you'll get ounces.
>
>It's actually for a weight calculator that we use for some of our 
>mailings. when you take .226 and multiply that by 464 you get 
>104.864 ounces.
>
>I need to be able to display that as: 6 # 13.824 Ounces.

Well, that explains it. Now, it's Friday for me.

You know, if you take the total weight and divide that by the number 
of gorillas per lamp-pole you'll go back in time. I'm totally lost.

Sorry I couldn't be more help.

Cheers,

tedd


-- 
-------
http://sperling.com  http://ancientstones.com  http://earthstones.com
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.