Page 1 of 1

DataConversion/Math Service

Posted: September 21st, 2021, 9:58 am
by SumanPrasad
Can someone put some example of how to use this service?

Re: DataConversion/Math Service

Posted: September 21st, 2021, 10:40 am
by SteveCap
The Math service is used to do calculations. I have this sample process.
MathServiceProcess.png
MathServiceProcess.png (16.5 KiB) Viewed 6901 times
MathServiceProcess.png
MathServiceProcess.png (16.5 KiB) Viewed 6901 times
I have a CreateServiceNode service to set sample values.
MyValues.png
MyValues.png (69 KiB) Viewed 6901 times
MyValues.png
MyValues.png (69 KiB) Viewed 6901 times
Then in the Math service I have a few sample equations setup.
MyMath.png
MyMath.png (137.88 KiB) Viewed 6901 times
MyMath.png
MyMath.png (137.88 KiB) Viewed 6901 times
Name is the name the output will be given.
Expression is the math equation you want to evaluate.
DecimalPrecision is how many decimals should be outputed.

These equations end up being:
SimpleAddition: 5+2=7.000
SimpleDivision: 10/2=5.0
MoreComplex: (((5^2)*6)-10)/6=23.33
MyMathResult.png
MyMathResult.png (55.91 KiB) Viewed 6901 times
MyMathResult.png
MyMathResult.png (55.91 KiB) Viewed 6901 times

Re: DataConversion/Math Service

Posted: September 30th, 2021, 12:20 pm
by gsmit96
Neat, thanks for posting!!

Re: DataConversion/Math Service

Posted: September 30th, 2021, 12:57 pm
by gsmit96
Sorry, forgot to say thanks!!