Another operator for division in JavaScript?

Discussion in 'Programming' started by robemeen, Mar 3, 2014.

to remove all ads.
  1. robemeen

    robemeen New Member

    Messages:
    1
    I have this small section of code that breaks with two division symbols too close to each other.
    ctx.arc(37,37,13,Math.PI / 7,-Math.PI / 7,false);
    The Math.PI / 7,-Math.PI / 7 part.

    Does anybody know a way to fix this or another operator symbol for division?
    _______________________
    steve barbarich
     
    Last edited: Mar 8, 2014
  2. chrishirst

    chrishirst Well-Known Member Staff Member

    Messages:
    2,670
  3. ronaldroe

    ronaldroe Super Moderator Staff Member

    Messages:
    1,223
    Couldn't you just put parentheses around them?
     

Share This Page