vendredi 2 décembre 2016

as3 - A button to round number decimal by decimal

I need help. I want to make a button that round a number, decimal by decimal, like 1.2345 to 1.234 to 1.23 etc. I don't want to use Math.round since that rounds to a whole number, and i don't know if i can use *10/10, *100/100 and so, since i get different amont of decimals in my answer. This button will have to work on a calculator after i've clicked btnEqualsand just round the answer.

I also need help to use addEventListener to a label in a "List" component.

Aucun commentaire:

Enregistrer un commentaire