|
|
| Everything HP200LX: Knowledge, Products, Service |
|
Value of coins by weightFrom Dave Goodman CompuServe ID: [72330,130] This equation lets you calculate how much 100 quarters would weigh, or the value of a pound of pennies. (The weight of the different coins is hard-coded into the equation.) {Coin Weight| !Value by weight (grams) ! !If you have a sack of! !pennies, set Value to how! !many grams the sack weighs,! !and solve for Dollars. Or, ! !set Value to a dollar amount! !and solve for weight, and you'll! !see how much that many coins! !would weigh for each coin.! Weight*0 + Dollars*0 + Pennies*0 + Nickels*0 + Dimes*0 + Quarters*0 + if(S(Weight), L(Pennies, Dollars / .01 2.8240)*0+ L(Nickels, Dollars / .05 5.0025)*0+ L(Dimes, Dollars / .10 2.2740)*0+ L(Quarters,Dollars / .25 5.6133)*0 - Weight, if(S(Dollars), L(Pennies, Weight / 2.8240 .01)*0+ L(Nickels, Weight / 5.0025 .05)*0+ L(Dimes, Weight / 2.2740 .10)*0+ L(Quarters,Weight / 5.6133 .25)*0 - Dollars, 0)) }
|
|
Copyright © 2005 Thaddeus Computing Inc
<