Sharad N Srivastava wrote:
Also, instead of firing multiple process from Java, I created a shell script which accepts the file name as input and does all the heavy operation like SORT/SPLIT/Logic execution and returns the result.
rekha sen wrote:
I have made a change to the method to accept the Exponential values and it is like this,
This method is handling every thing except "1." values.
Please help me in changing the regex to accept numbers like "1." or "100."
.
Swastik Dey wrote:Of course in this case it will be true.
Swastik Dey wrote:You may write a function that tries to convert the String into a valid number, if it fails means it might be having alphabets.
rekha sen wrote:
Some of the numeric values are like this,
3.04005885553944E-06
1.19449873607102E-05
8.2121788104883E-06
5.22593197031073E-06
4.47937026026634E-06
2.98624684017756E-06
1.
3.73280855022195E-06
I WROTE THIS CODE AND IT IS NOT WORKING FOR THE ABOVE NUMBERS
WHat I need to change to accept the above type of numeric values.
Sekhar Nat wrote:Thanks Stephen. This works now.
Tushar Goel wrote:Yeah thanks Richard. I am able to achieve this but can we transfer decimal output "111217238859577568889117274385450287013" into "3158851493" which
is bignum output.
I understand both are same but in different format but can we changed decimal output to bignum output format.
Tushar Goel wrote:Yes it is longer than 32 bit. Decimal value i am getting is "111217238859577568889117274385450287013".
I also wanted to ask why it is more than
32 bits? Doesn't understand the logic behind.
Tushar Goel wrote:
Can you please tell me if i have to convert Java output to the C output how can i do that? I have to give the output in same format as C output is.