4 Replies Latest reply: Jul 18, 2012 10:56 PM by Daves61 RSS

    How to get PMReal value from PMString considering the OS format settings of decimal character?

    Daves61

      Hi All,

       

      I am working on a plugin and have got stuck in a problem.

       

      The notation for the decimal character on my machine is set to ',' instead of the usual '.' Now, I have a number in PMString having comma as decimal character say, 34,123 and I need to convert this to PMReal.

      I was using GetAsDouble() method of PMString but this method doesn't detect comma as decimal separator and gives 34 as the number.

       

      Can anyone tell me how can I convert PMString to PMReal with the representation that considers the OS settings for representing the decimal.