pmt: Integers

pmt.is_integer(pmt_t x) → bool

Return true if is an integer number, else false.

pmt.to_long(pmt_t x) → long

Convert pmt to long if possible.

When represents an exact integer that fits in a long, return that integer. Else raise an exception, either wrong_type when x is not an exact integer, or out_of_range when it doesn’t fit.

pmt.from_long(long x) → pmt_t

Return the pmt value that represents the integer .

pmt: uint64_t

pmt.is_uint64(pmt_t x) → bool

Return true if is an uint64 number, else false.

pmt.to_uint64(pmt_t x) → uint64_t

Convert pmt to uint64 if possible.

When represents an exact integer that fits in a uint64, return that uint64. Else raise an exception, either wrong_type when x is not an exact uint64, or out_of_range when it doesn’t fit.

pmt.from_uint64(uint64_t x) → pmt_t

Return the pmt value that represents the uint64 .

Table Of Contents

Previous topic

pmt: Vectors

Next topic

pmt: Numbers

This Page