Re: String Formula to calculate the value - Mailing list pgsql-jdbc

From Peter
Subject Re: String Formula to calculate the value
Date
Msg-id 021601c9b8df$0fb04d80$2f10e880$@com
Whole thread Raw
In response to String Formula to calculate the value  (ram subbu <ramgv80@yahoo.com>)
List pgsql-jdbc

You could use plPerl – it is very  well suited for string manipulation. Also there is eval() function that can be used for formulas like yours.

 

From: pgsql-jdbc-owner@postgresql.org [mailto:pgsql-jdbc-owner@postgresql.org] On Behalf Of ram subbu
Sent: Wednesday, April 08, 2009 2:56 PM
To: Kris Jurka; pgsql-jdbc@postgresql.org; pgsql-jdbc@postgresql.org
Subject: [JDBC] String Formula to calculate the value

 

Dear All,

    I am having a formula String

say====> (a+b*c)/2

I need to pass the dynamic value to these a,b,c

 

and i need to calculate the value.

please help me out to write a procedure to do all these stufs.

 

pgsql-jdbc by date:

Previous
From: "Albe Laurenz *EXTERN*"
Date:
Subject: Re: String Formula to calculate the value
Next
From: John Lister
Date:
Subject: Re: Array passing