# Uint can't be null or NaN

**URL:** <https://forum.kirupa.com/t/uint-cant-be-null-or-nan/318300>\
**Category:** Uncategorized\
**Created:** [January 16, 2011, 3:11am UTC](https://forum.kirupa.com/t/uint-cant-be-null-or-nan/318300 "2011-01-16T03:11:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tbo](https://avatars.discourse-cdn.com/v4/letter/t/7feea3/32.png) [@tbo](https://forum.kirupa.com/u/tbo)\
**Post date:** [January 16, 2011, 3:11am UTC](https://forum.kirupa.com/t/uint-cant-be-null-or-nan/318300/1 "2011-01-16T03:11:35Z")

</div>

i want my uint to be 0,1, or null.

it appears i cannot assign NaN to a uint, but i can with a number. why is that?

```auto

var num:Number;
trace (num) //NaN

var u:uint;
trace (u); //0

```

I want an undefined place holder for the uint. In my case i suppose I’ll use the number 2 and try to remember it means NaN to me.
