Skip to content

Commit

Permalink
fixing missing tolerance defaults for InexactValueWithUnits
Browse files Browse the repository at this point in the history
  • Loading branch information
limefrogyank committed Oct 9, 2024
1 parent 0bbcfa5 commit e9adef8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Macros/contextInexactValueWithUnits.pl
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ sub Init {
# class => 'InexactValueWithUnits::InexactValueWithUnits', eval => 'evalGreaterThan', combine => 1, perl => '>'}
# );

$context->flags->set('tolerance', 0); # default for InexactValue, but needed for InexactValueWithUnits since it's not technically a base class
$context->flags->set('tolType', 'absolute'); # default for InexactValue, but needed for InexactValueWithUnits since it's not technically a base class
#
# Don't reduce constant values (so 10^2 won't be replaced by 100)
#
Expand Down

0 comments on commit e9adef8

Please sign in to comment.