Python  1.0
Functions
_01f_getDigit Namespace Reference

Picks up a digit from an integer. More...

Functions

def getDigit (num, d)
 Gets the n-th digit of an integer, from right to left. More...
 
def main ()
 

Detailed Description

Picks up a digit from an integer.

Author
Paulo Roma

Function Documentation

◆ getDigit()

def _01f_getDigit.getDigit (   num,
  d 
)

Gets the n-th digit of an integer, from right to left.

Parameters
numan integer.
dbit to be retrieved.
Returns
the d-th digit of num.

Referenced by _05c_cnpj.areValidDigits(), _05b_cpf.areValidDigits(), and main().

◆ main()

def _01f_getDigit.main ( )

References getDigit(), and _01d_dec2bin.input.