Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

How do I set an input value of a decimal?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    How do I set an input value of a decimal?

    Lately I've been using a condition of "if x is lower than BUYUNDER..." I set the value as an integer but I can't use any decimal points. What do I use to allow me to set values of 0.23 for example? Note: I have a very basic understanding of C+, I use the program to make algos.

    #2
    for decimals you need to use a double not an int,

    Comment


      #3
      Thanks for the help!

      Comment

      Latest Posts

      Collapse

      Topics Statistics Last Post
      Started by b16_aln, Today, 05:15 AM
      0 responses
      1 view
      0 likes
      Last Post b16_aln
      by b16_aln
       
      Started by sidlercom80, Today, 04:57 AM
      0 responses
      3 views
      0 likes
      Last Post sidlercom80  
      Started by patricia70, Today, 03:57 AM
      0 responses
      5 views
      0 likes
      Last Post patricia70  
      Started by pjsmith, Today, 03:25 AM
      0 responses
      7 views
      0 likes
      Last Post pjsmith
      by pjsmith
       
      Started by cincai, Today, 01:04 AM
      1 response
      14 views
      0 likes
      Last Post NinjaTrader_Jason  
      Working...
      X