Java Math. question

Discussion in 'OT Technology' started by Robotgod, Dec 8, 2003.

  1. Robotgod

    Robotgod Guest

    what are all the commands for the Math function? Ive seen some like math.sqrt and math.pow but how do u add, subtract, and multiply stuff? thanks for the help
     
  2. CompiledMonkey

    CompiledMonkey New Member

    Joined:
    Oct 26, 2001
    Messages:
    8,528
    Likes Received:
    0
    Location:
    Richmond, VA
    You can do that in code.

    Code:
    int x = 0;
    int y = 0;
     
    int sub = x - y;
    int add = x + y;
    
     
  3. crotchfruit

    crotchfruit Guest

  4. Robotgod

    Robotgod Guest

    Oops o_0 i meant in Javascript, not Java. Sorry, is there a way to add,sub,multi,div?
     

Share This Page