command to change a string to a number

Rahul_P1
Rahul_P1
Altair Employee
edited October 2020 in Community Q&A

About HyperMath

Hi Altair Engineer:

Is there a command or easier way to change a string “-1.2-16” to a number?

I found that the coordinate value for Grid written in .fem file dropped ‘e’ for exponential number. The value is supposed to be ‘-1.2e-16’, but now is ‘-1.2-16’. How can I get the value as a number?

Thank you,

Chao

Tagged:

Answers

  • Rahul_P1
    Rahul_P1
    Altair Employee
    edited August 2014

    Hi Chao,

    Are you using HyperMesh to export the .fem file?

    In that case you just need to uncheck the option ‘Remove E from real values’ in ‘Select Options’ from ‘Solver Options’ in the ‘Export’ tab.

    see image below
    02plh-Capture.PNG