Validate DV of agency and account of the Federal economy box [closed]

-5

I could not find any documentation that tells you what account should be made to validate the DV of the Federal Savings Bank, does anyone know which account is to be made or where do I find this information?

I was able to find all the other benches except the box.

Based on the information that @aa_sp has passed, so is the account.

public String getDVContaCaixaEconomicaFederal(String agencia, String conta)
{
    int[] multiplicadores = {8,7,6,5,4,3,2,9,8,7,6,5,4,3,2};
    int soma = 0;
    String numero = agencia + conta;

    for (int i = 0; (i < (numero.Length) && i < (multiplicadores.Length)); i++)
        soma += (int.Parse(numero.Substring(i, 1)) * multiplicadores[i]);

    int dac = soma * 10;

    int m = ((dac / 11) * 11);

    int dv = dac - m;

    if (dv == 10)
        dv = 0;

    return dv.ToString();
}
    
asked by anonymous 06.11.2018 / 13:08

1 answer

3

As found in the document: link

The rules would be:

    
06.11.2018 / 13:28