String Searching

Hi all

I am converting a number to string

var myResult : Number = 12.6789345

var myString : String ;
myString = String (myResult);

i am trying to search . (decimal point)

if ( myString.search(".")

{

}

but I am unable to get Result or unable to find " DOT "