Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I have a "*.csv" file with comma separated, containing a row of data type 'FLOAT' with value '(6.60)' , i have to convert this row into '-6.60'
How can i convert this?
Hi
You Can use Mathematical.NEG function it will Returns the arithmetic additive inverse of the value of the argument.
Hi
You Can use Mathematical.NEG function it will Returns the arithmetic additive inverse of the value of the argument.
@meetmahajan,convert float to sting and add "-" before the float to sting expression.
Thanks both the solutions working perfectly.
Conversion Syntax : Mathematical.NEG(Double.parseDouble(Variable.replaceAll("\\(", "").replaceAll("\\)","").trim()))