Try isNan() . eg:
if ( isNaN(Total_Cost) ) --- In [email protected], "markflex2007" <[EMAIL PROTECTED]> wrote: > > Hi, > > I have the simple code here > > var Total_cost : Number = Number(cost1) + Number(cost2); > if (Total_cost == NaN) > { > Total_cost = -1; > } > > I get a error.Please help me out.Thanks > > > Mark >

