statisticsnorway/java-vtl

Division by zero returns infinity or NaN

pawbu opened this issue · 0 comments

pawbu commented

Current implementation of VTLNumber relies on Java's rules when executing operations like 1/0(results in ∞) or 0/0 (results in NaN). The specification says a runtime error should be thrown in such cases. Ref. VTL 1.1 user manual, lines 3672-3673.