While in this case it's likely not an issue, in general using memcmp for floating point values should be avoided.