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 LeroyO, Today, 04:09 PM
    0 responses
    1 view
    0 likes
    Last Post LeroyO
    by LeroyO
     
    Started by sidlercom80, Today, 04:57 AM
    2 responses
    29 views
    0 likes
    Last Post NinjaTrader_Jim  
    Started by Tartagliagroup, Today, 02:11 PM
    1 response
    8 views
    0 likes
    Last Post NinjaTrader_Jesse  
    Started by rickyblah12, Today, 01:33 PM
    1 response
    12 views
    0 likes
    Last Post NinjaTrader_BrandonH  
    Started by rcloutier, Today, 01:17 PM
    4 responses
    14 views
    0 likes
    Last Post rcloutier  
    Working...
    X