# Lenght help

**URL:** <https://forum.kirupa.com/t/lenght-help/320853>\
**Category:** flash\
**Created:** [April 3, 2011, 7:25pm UTC](https://forum.kirupa.com/t/lenght-help/320853 "2011-04-03T19:25:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![iiitttaaa](https://avatars.discourse-cdn.com/v4/letter/i/a9adbd/32.png) [@iiitttaaa](https://forum.kirupa.com/u/iiitttaaa)\
**Post date:** [April 3, 2011, 7:25pm UTC](https://forum.kirupa.com/t/lenght-help/320853/1 "2011-04-03T19:25:23Z")

</div>

Well im making a maths game but as is maths sometimes the results get like many decimals. How can i make that for example when i press the chek button the code is this:

```auto
on (release, keyPress "<Enter>")
{
    if (total == f)
    {
        gotoAndPlay(23);
    }
    else if (total != f)
    {
        gotoAndPlay(44);
    } // end else if
}

```

but f sometimes is too long how can i make it only take 1 decimal???
