ctz/1 | Counts trailing zeros in the binary representation of a positive integer. |
lsb_pos/1 | Returns the position of the least significant bit in the binary representation of a positive integer. |
msb_pos/1 | Returns the position of the most significant bit in the binary representation of a positive integer. |
popcount/1 | Returns the number of 1's (ones or one-bits) in the binary representation of a non-negative integer. |
round_number/2 | Rounds the number to the specified precision. |
round_price/1 | Rounds the number to the precision of 2. |
ctz(Integer::pos_integer()) -> TrailingZeros::non_neg_integer()
Counts trailing zeros in the binary representation of a positive integer. Returns the number of zero bits following the least significant one bit. The call fails with a {badarg,Integer} exception if Integer is not a positive integer.
lsb_pos(Integer::pos_integer()) -> Pos::pos_integer()
Returns the position of the least significant bit in the binary representation of a positive integer. The call fails with a {badarg,Integer} exception if Integer is not a positive integer.
msb_pos(Integer::pos_integer()) -> Pos::pos_integer()
Returns the position of the most significant bit in the binary representation of a positive integer. The call fails with a {badarg,Integer} exception if Integer is not a positive integer.
popcount(Integer::non_neg_integer()) -> OneBits::non_neg_integer()
Returns the number of 1's (ones or one-bits) in the binary representation of a non-negative integer. Also known as population count, pop count, popcount, sideways sum, bit summation, or Hamming weight. The call fails with a {badarg,Integer} exception if Integer is not a non-negative integer.
round_number(Number::number(), Precision::integer()) -> float()
Rounds the number to the specified precision.
round_price(Number::number()) -> float()
Rounds the number to the precision of 2. The same as uef_num:round_number(Number, 2).
Generated by EDoc