This number can be different and it varies from state to state, the variation includes number of digits, required numbers and so on.The component works like a charm, you have just to put the State and the number that you wants to validate the example below:
It supports all the 27 Brazil States, you have just to change the first parameter according to the state that you want to validate the number.
The function returns a boolean value answering if the number is valid or not.
Fixed all the South states and São Paulo verification digit