Fixes Issue 9357 - Better diagnostic on float literals.
Fixes Issue 6833 - Floating point literals need fractional part in hdrgen.