Converts text to number in a locale-independent manner