Problem with variable declaration

To any who answer this, sorry if this is lame. I am new to AS and i was just going through the string tutorials but i couldnt get them to work. This is my code

dollarParser = function () {
var input:Number = 1234567.5644;
trace(input);

}
dollarParser();

it keeps giving my output as undefined.
am i an idiot or what?