# \[AS2\] removing zero's

**URL:** <https://forum.kirupa.com/t/as2-removing-zeros/310097>\
**Category:** flash\
**Created:** [June 1, 2010, 3:13pm UTC](https://forum.kirupa.com/t/as2-removing-zeros/310097 "2010-06-01T15:13:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![540media](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/540media/32/2543_2.png) [@540media](https://forum.kirupa.com/u/540media)\
**Post date:** [June 1, 2010, 3:13pm UTC](https://forum.kirupa.com/t/as2-removing-zeros/310097/1 "2010-06-01T15:13:38Z")

</div>

hi, can someone help me with this??

I’ve built a dynamic generating quiz

the user enters their answer into a input box and then presses a button to check their answer… this all work fine except that if the answer is say 5, if they enter 05 it still marks it correctly

is there a way to either strip away the 0 from their anwer when then press the check button or just mark it wrong??

thanks for any help
