Added index bound checking in floating point interpolation