Click here to Skip to main content
15,880,392 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:

Dear All,
I have one requirement to develop i.e., i need to give my own symbols to calculate the mathematical expression i.e., net?1200,234,345,%40- -->as ((net<1200)?234:345)*0.4... and also more typical calculations want to develop i.e., multiple inner loops with different symbols,can any body provide the solution/way to approach it...i have googled it but no use,please give suggestion,thank in advance....
Posted

1 solution

You should build an expression parser, there are many examples available[^].
 
Share this answer
 
v2
Comments
pbnarendra 16-Sep-14 1:20am    
Thanks for replay,can i change to actual mathematical conversion and viceversa...ie.,
net?15000,net1?2500,300,500,1000 to (net<15000)?((net1<2500)?300:500):1000 and Viceversa

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900