Nooby Question

Discussion in 'Plugin Development' started by ThatGuyWhoDied13, Dec 16, 2013.

Thread Status:
Not open for further replies.
  1. Hi, so in my plugin I have a tempban command, I want it to ban for days.
    Which way would I use to make it days.
    Code:java
    1. (((args[1] * 60) * 60) *24)
    or
    Code:java
    1. args[1] * 60 * 60 * 24
     
  2. Offline

    CeramicTitan

    http://www.mathsisfun.com/operation-order-bodmas.html
     
  3. Offline

    xTrollxDudex

    KevyPorter
    I'm not sure you have learned algebra yet
     
  4. Offline

    CeramicTitan

    regardless, he should be using time/date format.
     
  5. xTrollxDudex I have learned algebra T_T I was just wondering if the brackets were needed
    CeramicTitan WTH is PODMAS in Aus we call it BIDMAS (Brackets, Indicies, Division, Multiplication, Addition, Subtraction)
     
  6. Offline

    The_Doctor_123

    KevyPorter
    In Algebra, they teach order of operations(Well, actually in basic math as well..). That's why he asked.
     
  7. Offline

    xTrollxDudex

    KevyPorter
    Your extra parentheses aren't needed...
     
  8. Offline

    Ronbo

    KevyPorter

    They're trying to say that Java math operations follow the same rules as standard order-of-operations in math.

    Thus, in this case you don't need parentheses.
     
  9. Offline

    Gater12

  10. Offline

    The_Doctor_123

    JRL1004 and Gater12 like this.
  11. Offline

    xTrollxDudex

    Really? That's a really misleading abbreviation
     
  12. Offline

    The_Doctor_123

    xTrollxDudex
    Please Execuse My Dear Aunt Sally, but you're mistaken!
     
    spoljo666 and Gater12 like this.
  13. Offline

    CeramicTitan

    Do you mean BODMAS? I'm from Australia and its what I learned...
     
Thread Status:
Not open for further replies.

Share This Page