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 Hwop38, 05-04-2026, 07:02 PM
        0 responses
        160 views
        0 likes
        Last Post Hwop38
        by Hwop38
         
        Started by CaptainJack, 04-24-2026, 11:07 PM
        0 responses
        307 views
        0 likes
        Last Post CaptainJack  
        Started by Mindset, 04-21-2026, 06:46 AM
        0 responses
        245 views
        0 likes
        Last Post Mindset
        by Mindset
         
        Started by M4ndoo, 04-20-2026, 05:21 PM
        0 responses
        348 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Started by M4ndoo, 04-19-2026, 05:54 PM
        0 responses
        178 views
        0 likes
        Last Post M4ndoo
        by M4ndoo
         
        Working...
        X