plumial.core.P._P.b

_P.b(width=0)[source]

Return binary string representation of the p-value.

Parameters:

width (int) – Minimum width (right-justified with zeros, default: 0)

Return type:

str

Returns:

Binary string representation

Examples

>>> p = P(133)
>>> p.b()
'10000101'
>>> p.b(10)
'0010000101'