ToolGood.Algorithm icon indicating copy to clipboard operation
ToolGood.Algorithm copied to clipboard

=00005.5*10 not work

Open lyk12 opened this issue 3 years ago • 2 comments

Hi,

it seems formula =00005.5*10 not work. =value(00005.5) doesn't work either. only =value("00005,5")*10 or "00005.5"*10 works.

could you support =00005.5*10 and =value(00005.5)?

thanks, lyk

lyk12 avatar Jun 30 '22 08:06 lyk12

Application has no errors

            AlgorithmEngine engine = new AlgorithmEngine();
            var dt = engine.TryEvaluate("value(\"0.00055\")*10", 0.0);
            Assert.AreEqual(dt, 0.0055,6);

toolgood avatar Jul 11 '22 01:07 toolgood

            AlgorithmEngine engine = new AlgorithmEngine();
            var dt = engine.TryEvaluate("value(\"0.00055\")*10", 0); // If you change it like this, you will make mistakes
            Assert.AreEqual(dt, 0.0055,6);

toolgood avatar Jul 11 '22 01:07 toolgood