Wednesday, August 18, 2004

one of those moments

It actually happened. Yesterday, I had a moment where I really needed some information to write some code, and should've known the answer. I was trying to remember how to use density and/or specific gravity to convert between volume and mass units. This was obviously one of those things that I learned, way back in high school math or science, and thought to myself, "I'll never need to know that in the real world." I hope I never utter or think that phrase again.

For the record, to convert volume to mass if you know the specific gravity, and the volume you want the mass of has been converted to liters (here's why), then you can find the mass in kilograms by multiplying the specific gravity by the volume. Thanks, Google!

No comments: