class Memory {

    public static long gb(final double gigabytes) {
        return (long) gigabytes * 1024 * 1024 * 1024;
    }

}

class MemoryTest {

    @Test
    public void testGb() {

        assertEquals( Memory.kb( Long.SIZE ), (long) 64 * 1024 );
    }

}