Period of decimal fraction



Are there commands to obtain the period p and its length l of a decimal fraction from its fraction (e.g. p(1/7)=145827 and l(1/7)=6)?
Jan