# Arghh! how can this not be a number?

**URL:** <https://forum.kirupa.com/t/arghh-how-can-this-not-be-a-number/194820>\
**Category:** flash\
**Created:** [July 26, 2006, 3:17pm UTC](https://forum.kirupa.com/t/arghh-how-can-this-not-be-a-number/194820 "2006-07-26T15:17:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![schmichael](https://avatars.discourse-cdn.com/v4/letter/s/ea5d25/32.png) [@schmichael](https://forum.kirupa.com/u/schmichael)\
**Post date:** [July 26, 2006, 3:17pm UTC](https://forum.kirupa.com/t/arghh-how-can-this-not-be-a-number/194820/1 "2006-07-26T15:17:43Z")

</div>

Hey there, I’'ve hit a bit of a brick wall here. I am passing an array (Ticket) that contains lots of two-digit strings into a function. The function then needs to extract each number and also find the Math.floor/10 of the number.  
For some reason I am getting NaN for n but the number appears as expected :  
N: NaN number: 49

Here’s my code:

[AS]  
n = Math.floor(Ticket\*/10);  
trace("N: “+n+” number: "+Ticket\*);  
[AS]

if anyone could help I’d be really grateful.  
Thanks!  
Schm
