DataConversion/Math Service

This forum allows users to post and respond to "How Do I Do ....." questions. The information contained in this forum has not been validated by K-Rise Systems and, as such, K-Rise Systems cannot guarantee the accuracy of the information.
Post Reply
SumanPrasad
Posts: 88
Joined: August 26th, 2021, 5:21 pm
Contact:

DataConversion/Math Service

Unread post by SumanPrasad »

Can someone put some example of how to use this service?
word count: 11

Tags:
SteveCap
Posts: 327
Joined: August 26th, 2021, 9:18 am
Contact:

Re: DataConversion/Math Service

Unread post by SteveCap »

The Math service is used to do calculations. I have this sample process.
MathServiceProcess.png
MathServiceProcess.png (16.5 KiB) Viewed 5978 times
MathServiceProcess.png
MathServiceProcess.png (16.5 KiB) Viewed 5978 times
I have a CreateServiceNode service to set sample values.
MyValues.png
MyValues.png (69 KiB) Viewed 5978 times
MyValues.png
MyValues.png (69 KiB) Viewed 5978 times
Then in the Math service I have a few sample equations setup.
MyMath.png
MyMath.png (137.88 KiB) Viewed 5978 times
MyMath.png
MyMath.png (137.88 KiB) Viewed 5978 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 5978 times
MyMathResult.png
MyMathResult.png (55.91 KiB) Viewed 5978 times
word count: 145
gsmit96

Re: DataConversion/Math Service

Unread post by gsmit96 »

Neat, thanks for posting!!
word count: 4
gsmit96

Re: DataConversion/Math Service

Unread post by gsmit96 »

Sorry, forgot to say thanks!!
word count: 5
Post Reply