mparlak / Flee

Fast Lightweight Expression Evaluator
630 stars 121 forks source link

round AwayFromZero and ToEven #97

Open sameedaris opened 2 years ago

sameedaris commented 2 years ago

I am using System.Math Round method with flee. As we know there are two method to round a number Away from zero and ToEven. My Expression is "round(0.5)" it always returns 0. I want it to return 1 when it is .5 normally in c# We use Math.Round(.5,MidpointRounding.AwayFromZero). Please tell me how to achieve same with flee.