Tools

num(s: str)

Tries to turn string into int or float

Parameters:s (str) – The string to parse
Returns:If unable to convert returns the input
Return type:int or float or str