# NaN message help!

**URL:** <https://forum.kirupa.com/t/nan-message-help/250945>\
**Category:** flash\
**Created:** [February 3, 2008, 10:12pm UTC](https://forum.kirupa.com/t/nan-message-help/250945 "2008-02-03T22:12:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![nuky1982](https://avatars.discourse-cdn.com/v4/letter/n/e5b9ba/32.png) [@nuky1982](https://forum.kirupa.com/u/nuky1982)\
**Post date:** [February 3, 2008, 10:12pm UTC](https://forum.kirupa.com/t/nan-message-help/250945/1 "2008-02-03T22:12:35Z")

</div>

Hi everyone,  
I’m fairly new to Flash and I apologise in advance if what about to ask is either silly or obvious (or both!)…

I want to create a simple Flash calculator but I am having problems with VERY basic numeric expressions.

At the moment (please see attached .zip file containing .swf and .fla) I just have two text boxes and a button. One text box takes a number from the user and when they press the button, it outputs that number multiplied by 2 in the second text box.

BUT no matter what I do, I ALWAYS get “NaN” as the output for the second text box. My ActionScript for the .swf is as follows:

```auto

enter_btn.onRelease = function() {
    outputNum = inputNum * 2;
};

var inputNum:Number = 0;
var outputNum:Number = 0;

```

Any help would be very welcome!

Many thanks,  
Nuky1982.
