Jumpin Bajeezopotamus! Does every single little tiny thing (like dividing by 2) require a forum post?!?

Jumpin Bajeezopotamus! Does every single little tiny thing (like dividing by 2) require a forum post?!?

If it weren't for the fact that I can't afford to hire someone to do this for me, I swear I would.

  1. var w = $( this ).css( 'width' ),
  2.      s = Math.ceil( w / 2 ) /*** I have also tried "( w / 2 )" and "w / 2" all three result in "NaN" ***/
  3. console.log( w ) /*** prints an int. perfect. :) ***/
  4. console.log( s ) /*** prints NaN... WTF??? ***/
Eventually I want to do this:

  1. return 'margin-right:-' + s + 'px;'