mirror of
https://github.com/sasjs/core.git
synced 2026-07-23 15:35:29 +00:00
fix: use if/else instead of ifn() in hash evaluation
This commit is contained in:
+3
-5
@@ -73,12 +73,10 @@
|
|||||||
/*
|
/*
|
||||||
multiply-by-one for consistent cross-system precision.
|
multiply-by-one for consistent cross-system precision.
|
||||||
Ignore null to protect SAS special missing values.
|
Ignore null to protect SAS special missing values.
|
||||||
|
Cannot use IFN() as it evaluates both sides
|
||||||
*/
|
*/
|
||||||
&normal = ifn(
|
if missing(&nums[&i]) then &normal = &nums[&i];
|
||||||
missing(&nums[&i]),
|
else &normal = &nums[&i] * 1;
|
||||||
&nums[&i],
|
|
||||||
&nums[&i] * 1
|
|
||||||
);
|
|
||||||
&numtext = put(&normal, binary64.);
|
&numtext = put(&normal, binary64.);
|
||||||
&digest = md5(trim(&numtext));
|
&digest = md5(trim(&numtext));
|
||||||
substr(&pair, 1, 16) = &state;
|
substr(&pair, 1, 16) = &state;
|
||||||
|
|||||||
Reference in New Issue
Block a user