# Problem with Calculation

**URL:** https://forum.kirupa.com/t/problem-with-calculation/318140
**Category:** flash
**Created:** [January 11, 2011, 3:16pm UTC](https://forum.kirupa.com/t/problem-with-calculation/318140 "2011-01-11T15:16:47Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![masuoka101](https://avatars.discourse-cdn.com/v4/letter/m/c57346/32.png) [@masuoka101](https://forum.kirupa.com/u/masuoka101)
#### Post date: [January 11, 2011, 3:16pm UTC](https://forum.kirupa.com/t/problem-with-calculation/318140/1 "2011-01-11T15:16:47Z")

</div>

Hey

Sorry if this seems a silly or simple but i am quite new to flash

I am trying to perform a simple calculation. However when ever i try to display in a dynamic text box i get NaN.

```auto

[INDENT]lambdas = rk / lp;
test_txt.text = lambdas.toString();
[/INDENT]

```

lambdas, rk and lp are all number variables ( var lambdas:Number; etc)  
rk and lp are input text fields that have been converted to numbers

specifically, the numbers i am rying to input are rk = 0.05 and lp = 0.2

any help would been appreciated  
thanks 🙂
