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

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to