Skip to content

Commit

Permalink
Fixed issue #12452: Numeric vars are treated as string during comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
c-schmitz committed Jun 6, 2017
1 parent c715a1f commit 6ed9fad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/expressions/em_javascript.js
Expand Up @@ -754,7 +754,7 @@ function LEMval(alias)
value = str_repeat('0', length).substr(0,(length - value.length))+''+value.toString();
}
}
return value;
return Number(value);
}

// convert content in date questions to standard format yy-mm-dd to facilitate use in EM (comparisons, min/max etc.)
Expand Down

0 comments on commit 6ed9fad

Please sign in to comment.