javascript - Weird Assignment IDE Warning -


i'm developing html5 canvas application. it's required work on mobile devices. 1 of features bmi calculation this:

javascript code:

bmi = refweight / ((refheight/ 100)*(refheight/ 100)) ; 

netbeans (7.3) gives me warning, saying: "weird assingnment"

i know can use math.pow(); here, alteratinos code breaks code on mobile devices.

is there proper way that?

btw, formula bmi is:

http://i.stack.imgur.com/n4ooa.gif

it's bug (which believe fixed in version 8).

a weird assignment hint appears when developer writes code looks this:

x = x; 

as can see, code unnecessary , doesn't change anything.


Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -