Customer Portal

Reformatting of Value

Comments 1

  • Avatar
    vitd
    0
    Comment actions Permalink
    Hello,

    then double precision values are stored in number type variables in CTL2. This can be easily formatted by:


    number value = 2.44266E+21;
    string formatted = num2str(value, "#") ;
    printLog(info, formatted) ;


    Please note that the resulting value might differ between Excel and CloverDX because of the different rounding. In order to save the precise values, the decimal data type is rather recommended.

Please sign in to leave a comment.