AnsweredAssumed Answered

Variable seems to be rounding up to whole number! not what i want!!

Question asked by shae1725 on Aug 26, 2014
Latest reply on Aug 28, 2014 by shae1725

Title

Variable seems to be rounding up to whole number! not what i want!!

Post

     My head is about to explode or my laptop is going through the window if I cant solve this issue

     I am trying to set a variable in a javascript with a value from a layer::scale

     the field is a calculation field with values with up to 12 decimal places  and sometimes but rarely more.

     The problem is that the variable seems to be getting a whole number value for example if layer::scale has a value of  .2345 the var behaves as if the value returned is  1  ,  2.2345 behaves as a 2   3.2345 - 3 etc

     yet if I place the value directly into the javascript variable all is fine!

     If I place a whole number into the layer::scale field all is fine too but I neeeeeeeed my decimals

     any help on the issue would be greatly appreciated

      

      

      

Outcomes