Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

math.log?

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

    math.log?

    i need to do a log and have used

    Math.Log()

    and am getting a number returned that is not the log

    double Rat = Math.Log(800);

    rat should be 2.903 but i'm getting 6.68

    is Math.Log not the same as "Log"

    looked around but am having trouble figuring this out

    thanks in advance for any help

    #2
    Hi Jim, per default that would be the natural log or ln you get, you seek it from base 10 likely here so try please - Math.Log(800, 10);
    BertrandNinjaTrader Customer Service

    Comment

    Latest Posts

    Collapse

    Topics Statistics Last Post
    Started by Lloyd143, Today, 05:24 PM
    1 response
    11 views
    0 likes
    Last Post NinjaTrader_ShawnB  
    Started by Hagar, Today, 04:38 PM
    1 response
    10 views
    0 likes
    Last Post NinjaTrader_ShawnB  
    Started by [email protected], Today, 04:49 PM
    0 responses
    9 views
    0 likes
    Last Post bpatel20@gmail.com  
    Started by forrestang, Today, 02:05 PM
    3 responses
    22 views
    0 likes
    Last Post NinjaTrader_ChrisL  
    Started by harryodell55, Today, 01:30 PM
    3 responses
    26 views
    0 likes
    Last Post NinjaTrader_ChrisL  
    Working...
    X