fixed the bug for inferred now works for floating point values