Announcement

Collapse
No announcement yet.

Partner 728x90

Collapse

Math.max method? Long time reader, first time poster ;)

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

    Math.max method? Long time reader, first time poster ;)

    Hey everyone.

    I am currently in my first year of programming and could definitively use some help.

    I am trying to solve this problem but I am completely stumped.

    "Write a program that asks the user for three sales amounts, sends all thre arguments to Math.max(), and the displays the results. Does the Math.max() method accept three arguments?"

    "Uaing Javascript, write a program to find the maximum of three sales amounts by testing whether the Math.max() method can accept three arguments."


    Could someone please assist me, would be greatly appreciated

    #2
    backspace,

    Is this a NinjaTrader related question or a general programming question? Is this a Java question or a C# question? Please keep in mind that NinjaTrader uses C#.

    Please let me know if I may be of further assistance.
    Adam P.NinjaTrader Customer Service

    Comment


      #3
      Sorry

      Its just a general question and Java

      Comment


        #4
        backspace,

        Hopefully someone can help you. Unfortunately this is beyond the scope of our support.

        I believe Java is similar to C# in that you can do something like :

        Math.Max( Math.Max ( item1 , item2 ) , item 3);

        Please let me know if you require any assistance with NinjaTrader or programming in NinjaTrader.
        Last edited by NinjaTrader_AdamP; 02-08-2012, 01:32 PM.
        Adam P.NinjaTrader Customer Service

        Comment

        Latest Posts

        Collapse

        Topics Statistics Last Post
        Started by CarlTrading, 03-31-2026, 09:41 PM
        1 response
        152 views
        1 like
        Last Post NinjaTrader_ChelseaB  
        Started by CarlTrading, 04-01-2026, 02:41 AM
        0 responses
        89 views
        1 like
        Last Post CarlTrading  
        Started by CaptainJack, 03-31-2026, 11:44 PM
        0 responses
        131 views
        2 likes
        Last Post CaptainJack  
        Started by CarlTrading, 03-30-2026, 11:51 AM
        0 responses
        127 views
        1 like
        Last Post CarlTrading  
        Started by CarlTrading, 03-30-2026, 11:48 AM
        0 responses
        107 views
        0 likes
        Last Post CarlTrading  
        Working...
        X