added getInt and getFloat methods to return 0 instead of NaN