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 Geovanny Suaza, 02-11-2026, 06:32 PM
        0 responses
        637 views
        0 likes
        Last Post Geovanny Suaza  
        Started by Geovanny Suaza, 02-11-2026, 05:51 PM
        0 responses
        366 views
        1 like
        Last Post Geovanny Suaza  
        Started by Mindset, 02-09-2026, 11:44 AM
        0 responses
        107 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by Geovanny Suaza, 02-02-2026, 12:30 PM
        0 responses
        569 views
        1 like
        Last Post Geovanny Suaza  
        Started by RFrosty, 01-28-2026, 06:49 PM
        0 responses
        571 views
        1 like
        Last Post RFrosty
        by RFrosty
         
        Working...
        X