Skip to content

Commit

Permalink
Merge v6 for release (#355)
Browse files Browse the repository at this point in the history
* Updated function to handle nil values when comparing assets to liabilities

* Added rupdated ruleset files for version 6
  • Loading branch information
davidtauriello authored Aug 24, 2018
1 parent 16ad961 commit dffdd4d
Show file tree
Hide file tree
Showing 8 changed files with 40 additions and 0 deletions.
Binary file modified dqc_us_rules/dqc-us-2015-V6-ruleset.zip
Binary file not shown.
Binary file modified dqc_us_rules/dqc-us-2016-V6-ruleset.zip
Binary file not shown.
Binary file modified dqc_us_rules/dqc-us-2017-V6-ruleset.zip
Binary file not shown.
Binary file modified dqc_us_rules/dqc-us-2018-V6-ruleset.zip
Binary file not shown.
10 changes: 10 additions & 0 deletions dqc_us_rules/source/us/2015/functions.xule
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,16 @@ $tolerance1 = if ($left.decimals < $right.decimals)
$right.decimals;
$tolerance2 = (10.power(-1 * $tolerance1)) * $decimal_tolerance_factor;

$left = if $left == none
0
else
$left;

$right = if $right == none
0
else
$right;

if (abs(round($left,$tolerance1) - round($right,$tolerance1)) > $tolerance2)
true
else
Expand Down
10 changes: 10 additions & 0 deletions dqc_us_rules/source/us/2016/functions.xule
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,16 @@ $tolerance1 = if ($left.decimals < $right.decimals)
$right.decimals;
$tolerance2 = (10.power(-1 * $tolerance1)) * $decimal_tolerance_factor;

$left = if $left == none
0
else
$left;

$right = if $right == none
0
else
$right;

if (abs(round($left,$tolerance1) - round($right,$tolerance1)) > $tolerance2)
true
else
Expand Down
10 changes: 10 additions & 0 deletions dqc_us_rules/source/us/2017/functions.xule
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,16 @@ $tolerance2 = if ($tolerance1 == inf)
0
else
(10.power(-1 * $tolerance1)) * $decimal_tolerance_factor;

$left = if $left == none
0
else
$left;

$right = if $right == none
0
else
$right;

if (abs(round($left,$tolerance1) - round($right,$tolerance1)) > $tolerance2)
true
Expand Down
10 changes: 10 additions & 0 deletions dqc_us_rules/source/us/2018/functions.xule
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,16 @@ $tolerance2 = if ($tolerance1 == inf)
0
else
(10.power(-1 * $tolerance1)) * $decimal_tolerance_factor;

$left = if $left == none
0
else
$left;

$right = if $right == none
0
else
$right;

if (abs(round($left,$tolerance1) - round($right,$tolerance1)) > $tolerance2)
true
Expand Down

0 comments on commit dffdd4d

Please sign in to comment.