From e9adef81c7661928680e60c04fb5e7533321ecf4 Mon Sep 17 00:00:00 2001 From: Lee McPherson Date: Wed, 9 Oct 2024 11:48:37 -0700 Subject: [PATCH] fixing missing tolerance defaults for InexactValueWithUnits --- Macros/contextInexactValueWithUnits.pl | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Macros/contextInexactValueWithUnits.pl b/Macros/contextInexactValueWithUnits.pl index aed33c9..a92a96e 100644 --- a/Macros/contextInexactValueWithUnits.pl +++ b/Macros/contextInexactValueWithUnits.pl @@ -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) #