Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Spain DNI letter finder

NotificationsYou must be signed in to change notification settings

sito8943/dni

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

The national identity document (DNI) in Spain consists of an 8-digit number and a letter. The DNI letter is obtained from the numbers as described in the following steps

  1. Calculate the remainder of dividing the ID number by 23
  2. The number obtained is between 0 and 22. Select the letter associated with that number in the following table:
012345678910111213141516171819202122
TRWAGMYFPDXBNJZSQVHLCKE

Example: Here you can see the ID of a friend of ours:

tux

  • Name: TUX
  • Surname: TORVALDS
  • Second surname: GNU
  • DNI: 31415927-C

The ID number is 31415927 and the remainder of dividing by 23 is 20: 31415927 = 1365909 x 23 + 20; therefore the letter that corresponds to it according to the table is "C"

To run:npm run start [-- number]


[8]ページ先頭

©2009-2025 Movatter.jp