If trying to validate a VIN with a check digit, first either: (a) remove the check digit for the purpose of calculation; or (b) utilize the multiplicative property of zero in the weight to cancel it out. You should later compare the original value of the check digit with the calculated value. If the two values do not match (and there was no error in the calculation), then there is a mistake in the VIN. However, a match does not prove the VIN is correct because there is still a 1 in 11 chance of any two distinct VINs having a matching check digit: an example of this would be the valid VINs 5GZCZ43D13S812715 (correct with leading five) and SGZCZ43D13S812715 (incorrect with leading character 'S').
Transliteration consists of removing all of the letters, and substituting them with their appropriate numerical counterparts. These numerical alternatives (based on IBM's EBCDIC) can be found in the following chart. I, O and Q are not allowed, and can not exist in a valid VIN; for the purpose of this chart, they have been filled in with N/A (not applicable). Numerical digits use their own values.
| A: 1 | B: 2 | C: 3 | D: 4 | E: 5 | F: 6 | G: 7 | H: 8 | N/A |
| J: 1 | K: 2 | L: 3 | M: 4 | N: 5 | N/A | P: 7 | N/A | R: 9 |
| S: 2 | T: 3 | U: 4 | V: 5 | W: 6 | X: 7 | Y: 8 | Z: 9 |
S is 2, and not 1. There is no left-alignment linearity.
abraço,
Carlos
--
Rotas e Trilhas - http://www.rotasetrilhas.com
Você recebeu esta mensagem porque está inscrito no
Grupo "rotasetrilhas" nos Grupos do Google.
Para postar neste grupo, envie um e-mail para
rotase...@googlegroups.com
Para cancelar a sua inscrição neste grupo, envie um e-mail para
rotasetrilha...@googlegroups.com
Para ver mais opções, visite este grupo em
http://groups.google.com.br/group/rotasetrilhas?hl=pt-BR?hl=pt-BR
Quando o Brasil adotou o cadastro único nacional, com implantação do RENAVAM, muitos veículos importados tiveram que gravar um número de chassi específico para nosso país, atendendo assim as normas locais.
É compreensível existirem diferenças quanto ao número de caracteres, pois nosso sistema exige números identificadores que permitem saber o país de fabricação, ano e modelo, tipo de combustível original, entre outras características que a numeração de chassi, obrigatoriamente deve apresentar.
Um abraço e até breve;
Renato Barreto ( São Lourenço do Sul)
----- Original Message -----From: Sebastian GoncalvesSent: Wednesday, August 24, 2011 5:39 PMSubject: [ReT: 2298] VIN errado (?!)
--