科学计数更新

This commit is contained in:
XingCheng3
2026-05-12 13:51:28 +08:00
parent 08b0d4e5e3
commit 2d5f260201
2 changed files with 3 additions and 5 deletions

View File

@@ -73,8 +73,9 @@ namespace MesWork
{
var interpreter = new Interpreter();
interpreter.Reference(typeof(Math));
interpreter.SetVariable("x", xValue);
interpreter.SetVariable("X", xValue);
double x = Convert.ToDouble(xValue);
interpreter.SetVariable("x", x);
interpreter.SetVariable("X", x);
object value = interpreter.Eval(formula);
if (value == null)