bartbutenaers / node-red-contrib-calc

A Node-Red node to perform basic mathematical operations
Apache License 2.0
5 stars 1 forks source link

Percentage Calculation #2

Open kgalilio opened 5 years ago

kgalilio commented 5 years ago

Great addition to node-red. It would be great to have percentage calculation like using a percentage value instead of the constant in the constant field. This way, the output would be the payload after the percentage addition/subtraction.. and so forth.

bartbutenaers commented 5 years ago

Hi @kgalilio, I will implement it in a week or two, because I have no time for Node-RED at the moment...

Please give me a reminder if I have forgotten this :-) Bart

bartbutenaers commented 4 years ago

Hey @kgalilio, Damn completely forgotten. You should have given me a reminder ... Don't know if you still need this feature?

Question. When I have a look at one of the examples on the readme:

image

Do you mean that - instead of doing 7 + 2 + 5 + 3 I should add 3% of 7 + 2 + 5 (which means 0,42). So the calculation would become 7 + 2 + 5 + 0,42. Is that correct?