Forum Discussion

jaikishpai's avatar
jaikishpai
Occasional Contributor
8 years ago

Output Field in Exponential Format

I am facing some issue while testing a web service via SOAP UI. The output field is of datatype float. The problem is, the value is getting converted to scientific notation in the response.

 

Example: expecting [26106884.0], actual output is [2.6106884E7].

Is there a way to avoid this other than changing the datatype of the field?

 

I see the data displayed appropriately in RESTCLIENT too. 

2 Replies

  • Was this ever solved?  I'm having the same problem.

  • JHunt's avatar
    JHunt
    Community Hero

    Specifically, what are you trying to do?

     

    Yes, it gets converted in some views, and on JSONPath. But you can still use for example, Contains assertion.

     

     {"Something":26106884.0}

    Contains assertion for: "Something":26106884.0, will pass.

     

    For JSONPath assertion, any problem with writing the scientific notation in the expected result?