return NaN value when not a number
update history