Add enum RealFormat to std.math

As discussed in https://github.com/D-Programming-Language/phobos/pull/2305

Replaces cryptic checks of ``T.mant_dig == 24`` with ``floatTraits!(T).realFormat == RealFormat.IEEESingle``
There's an alias ```F``` to floatTraits in this function, might as well re-use it?