Comment

Comment by Twirrim

I love these examples:

    Let's say you wanted to fill your bedroom up with water. How much water would it take? Let's say your room measures 10 feet by 12 feet wide by 8 feet high.

    10 feet 12 feet 8 feet -> gallons
    552960/77 (approx. 7181.298701298701)

    It would take approximately 7181 gallons to fill it. Note that you get both an exact fraction and an approximation. (If you don't want to see the fraction, put a decimal point in any of the numbers, like 10. or 10.0.) How much would that weigh, if you filled it with water? Frink has the unit "water" which stands for the density of water.

    10. feet 12 feet 8 feet water -> pounds
    59930.84215309883

    So it would weigh almost 60,000 pounds. What if you knew that your floor could only support 2 tons? How deep could you fill the room with water?

    2. tons / (10 feet 12 feet water) -> feet
    0.5339487791320047

    So you could only fill it about 0.53 feet deep. It'll be a pretty sad pool party.
This sits firmly in the "Neat, and now I'm sad I don't have a practical use case for this"
parent Twirrim 8 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton