Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The %number macro does not interpret (precision, scale) consistent with ANSI SQL #270

Closed
ghost opened this issue Jan 10, 2016 · 2 comments
Closed
Assignees
Milestone

Comments

@ghost
Copy link

ghost commented Jan 10, 2016

Precision is the total number of the digits in a number. Scale is the number of digits to the right of the decimal point.

In dg-example-default, samplemachine.xml defines var_2_6 as expr="%number(5,2)". DG generates values such as 85829.40 and 61140.01. To be consistent with the ANSI definition, the generated values should be like 858.29 and 611.40

@mibrahim
Copy link
Member

@mibrahim mibrahim added this to the DG2.2 milestone Jan 15, 2016
@mibrahim mibrahim modified the milestones: DG2.3, DG2.2 Feb 12, 2016
@mibrahim
Copy link
Member

Fixed by #272

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants