I have a problem where a very complicated context has been built, including an activation of Parser::Number::NoDecimals();
Later in the problem I would like to use Compute in the same context, or a copy of the context, but now with decimals allowed. Once you have used Parser::Number::NoDecimals();, is there an easy way you can bring decimals back into play?
I can see in Parser::Number, that NoDecimals adds some kind of regular expression check to NumberCheck. Can I do something to remove that? Can I just assign NumberCheck to be empty, or whatever its pre-NoDecimals() state was?
You can use
Context()->flags->remove("NumberCheck");to remove the check that
Parser::Number::NoDecimals()
installs.