Example of built-in ROUND incorrect in ECL Ref manual.

Description

The example of setting up 'MyVal2' in incorrect:

SomeRealValue1 := 3.14159; INTEGER4 MyVal1 := ROUND(SomeRealValue1); // MyVal1 is 3 INTEGER4 MyVal2 := ROUND(SomeRealValue1,2); // MyVal2 is 3.14 SomeRealValue2 := 3.5; INTEGER4 MyVal3 := ROUND(SomeRealValue2); // MyVal is 4 SomeRealValue3 := -1.3; INTEGER4 MyVal4 := ROUND(SomeRealValue3); // MyVal is -1 SomeRealValue4 := -1.8; INTEGER4 MyVal5 := ROUND(SomeRealValue4); // MyVal is -2

Being an INTEGER4 MyVal2 can never be 3.14

Conclusion

None

Activity

Show:
Fixed
Pinned fields
Click on the next to a field label to start pinning.

Details

Components

Assignee

Reporter

Priority

Compatibility

Point

Fix versions

Roadmap

Not applicable

Affects versions

Created January 2, 2020 at 6:48 PM
Updated January 8, 2020 at 9:51 AM
Resolved January 8, 2020 at 9:51 AM

Flag notifications