Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
345
CalcManager converting string values to scientific notation
posted

I have an UltraGridColumn with a datatype of "text" and a formula of string "2513694865213849663". When the CalcManager finishes its calculation I end up with String: "2.51369486521385E+18".

This blows an error in my application as I need this to be a string value with all numeric characters. Any way to make the CalcManager realize this should be treated as text and not numeric? I figured that by making the datatype of the column text this would solve it but evidently not.

Parents
  • 469350
    Offline posted

    I'm a little confused. What is the formula being applied to? A grid cell?

    You would probably be better off making the cell a Double of a Decimal type rather than a string, but it's hard to say without knowing exactly what you are doing, where the value comes from, and where it's being written to.

Reply Children