help math.asin function giving 0 if a variable is used

I don't know if it is a bug, or there is a limit of math functions I can use (i am using several)... but suddenly my asin functions only worked if a number is entered instead of a variable... 

For example, I have:

y = 141;

x=Math.asin(y/313);

after compiling and viewing on the memory location of variable x, the value is 0.

but if i use x=Math.asin(0.4504); it gave me the right value of 26.7

Does somebody experienced something similar?

 (have not tested if on the edge it worked fine)