Documentation
¶
Index ¶
- func Float(v any) (float64, error)
- func Instance(v any) (*big.Int, bool)
- func Int64(v any) (int64, error)
- func Native(n *big.Int) any
- func Of(v any) (*big.Int, error)
- func Parse(text string) (*big.Int, bool)
- func ParseBase(text string, base int) (*big.Int, bool)
- func ParseFloat(text string) (float64, error)
- func Round(x float64, ndigits int) float64
- func Value(n *big.Int) any
- type Error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Float ¶
Python float of a decoded JSON or config value with the TypeError, ValueError or OverflowError float raises
func Instance ¶
Integer value of v when isinstance(v, int) holds in Python, bools counting as 0 and 1
func Of ¶
Python int of a decoded JSON or config value with the TypeError, ValueError or OverflowError int raises
func Parse ¶
Python int of a string in base 10, digits of any script with single underscores between digits
func ParseBase ¶
Python int of a string in base 2 to 36 with its prefix, underscores and Unicode decimal digits
func ParseFloat ¶
Python float of a string, any script's decimal digits, underscores between digits, inf and nan spellings
Types ¶
type Error ¶
Python exception class and message of a failed int conversion
func (*Error) PyExceptionMRO ¶
Class names of the builtin exception through BaseException as type(exc).__mro__ lists them