Add floating point implementation for reference.