In another thread DecimalFloatingPoint Protocol Review - #3 by benrimmington @benrimmington mentions that the compiler treats FloatingPointLiterals
as binary floating point numbers. Since I am working on a Decimal floating-point library, it is vexing to not be able to use compliance to this protocol since obviously there would be errors in its representation for decimal numbers.
Would it be possible for the compiler to treat FloatingPointLiterals
in a radix-agnostic manner or even as a base 10 floating-point number? This seems to be closer to the original intent of this literal.