changed getDouble to return 0 instead of NaN as seems more compatible with javap output