matheval / expression-evaluator-c-sharp

Matheval is a mathematical expressions evaluator library written in C#. Allows to evaluate mathematical, boolean, string and datetime expressions
https://matheval.org/
MIT License
107 stars 29 forks source link

How to use calculate an expression for each row of a data table #23

Open prakashboston opened 7 months ago

prakashboston commented 7 months ago

Hi @matheval thanks for your library works very well.

In a data table, a formula column allows you to perform calculations based on values from other columns. Let's say you have a data table with columns "Quantity" and "Price," and you want to add a formula column for "Total" (Quantity multiplied by Price). image In this example, the formula in the "Total" column multiplies the corresponding values in the "Quantity" and "Price" columns.

This I need to achieve without looping by rows

can you help me? Thanks in advance