Implement a "preferred type" scheme for Formula parameters, where the infrastructure does the conversion for you and warns in the UI if not possible. #534
Labels
dependencies
Pull requests that update a dependency file
Milestone
The idea is that for parameters of ParamType.Formula, they should have an optional returnType parameter defaulting to
bigint
. The parameter/MathFormula infrastructure will attempt to take the result of the formula that the sequence explorer entered and convert it to the desired returnType. If that succeeds, it will return to the client code with the converted value of the proper type. If the conversion fails, it will add an error to the supplied status and return the zero of the requested returnType to the client code.Since this feature requires an upgraded mathjs, this issue should be dealt with in a PR that updates mathjs to the latest version, or thereafter.
Originally posted by @gwhitney in #530 (comment)
The text was updated successfully, but these errors were encountered: