sdmx-twg / vtl

This repository is used for maintaining the SDMX-VTL specification
11 stars 7 forks source link

Inconsistency in ROUND and TRUNC #407

Open vpinna80 opened 6 months ago

vpinna80 commented 6 months ago

The "behavior" section of round and trunc operators is inconsistent with the semantics.

They should be corrected as follows:

If numDigit is omitted or is set to 0, the operator has the behaviour of the “Operators changing the data type". Otherwise, for the invocations at Data Set level, the operator has the behaviour of the “Operators applicable on one Scalar Value or Data Set or Data Set Component”, while for the invocations at Component or Scalar level, the operator has the behaviour of the “Operators applicable on two Scalar Values or Data Sets or Data Set Components”, (see the section “Typical behaviours of the ML Operators”).

amattioc commented 6 months ago

I'll fix the docs. A wider discussion on this type of behaviour is open anyway (#409)