Expressions with SHORTREAL type


In the current .NET (may be also java) version of the compiler, the real constants have always REAL type. This results in problems with expressions where only SHORTREAL components are invoked. According to CP language report, page 29, in such cases the constants should have SHORTREAL type.

The similar problem is in SHORTREAL expressions with division (/) operator: the result has REAL type in this case.

Please find a simple test unit in the attachment.

file attachments