jeudi 30 mars 2017

How to convert exponential number to decimal numbers in action script 3?

I am facing the problem on multiplying two decimal number in flex.

When i am multiplying two decimal number the result is like a exponential number so i don't know how to get the decimal number as a result instead of getting an exponential number.

I am using the following codes to make a multiplication:

var num1:Number = 0.00005;
var num2:Number = 0.000007;
var result:Number = num1 * num2;

And in result variable i am getting the value as 3.5000000000000003E-10.

So i don't know how to get decimal number as result instead of getting an exponential number as above.

If anybody have knowledge how to resolve this problem please help me to solve.

Aucun commentaire:

Enregistrer un commentaire