Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • scientific notation

    hello, I have a numeric variable stored as double. but it displays in scientific notation (eg 4.000e+08). is there a way to turn this off so that it displays the whole number, even though it is very long and large

    thanks

  • #2
    Just apply a %f format to the variable. If it's an integer, something like -format varname %9.0f- will do the trick. If it's not an integer and you want, say, two decimal places, do -format varname %12.2f-. Read -help format-.

    Comment


    • #3
      You may also present the variable in a friendlier scale, say, instead of 1,500,000 it could be 1, for 1.5 million.
      Best regards,

      Marcos

      Comment

      Working...
      X