Calculated field: string to float?

a stupid question:
how to convert a string (like a shot name in the form “000100”) to a float or integer value (100) to be used in a calculated field ?