Closed likelion closed 3 years ago
Thanks. Merged after a small change to use atom_number/2 rather than converting through a string. This causes the conflict. Note that decimal support is still an issue as SWI-Prolog cannot represent decimals. Well, their value can be represented as a rational number, but the fact they are in fact a decimal is lost.
Forcing lexical representation through
xsd_number_string/2
for decimal numbers causes incorrect behavior:Contrary to double, decimal numbers must not use scientific notation in their lexical representation.