6.2.2 Converting strings to numbersStrings which contain numerical data can be converted to numbers by passing them to the object types.number(), as in the examples: pyxplot> print types.number("23") It is an error to try to convert a string to a number if it does not contain a correctly-formatted number:
|