Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 148677
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T09:00:05+00:00 2026-05-11T09:00:05+00:00

Can anyone provide an algorithm to validate a Singaporean FIN? I know with a

  • 0

Can anyone provide an algorithm to validate a Singaporean FIN?

I know with a Singaporean NRIC I can validate it via modulo 11 and then compare the result to a lookup table but cannot find a similar lookup table for the FIN.

I also do not know for sure if the modulo 11 is the correct method to validate.

I am aware the government sells a algorithm for $400 but maybe someone knows a cheaper way.

Bonus points for c# implementation.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T09:00:06+00:00Added an answer on May 11, 2026 at 9:00 am

    After a little searching around I found a way to validate them. This doesn’t neccersarily mean the FIN is valid, just that it falls within a valid range.

    I based it on algorithms from http://www.ngiam.net/NRIC/ppframe.htm

    I’ve also included a similar method for checking NRIC because I figure anyone who comes across this and is interested in one is interested in the other as well.

    Hope this helps someone!

        private static readonly int[] Multiples = { 2, 7, 6, 5, 4, 3, 2 };      public static bool IsNricValid(string nric)     {         if (string.IsNullOrEmpty(nric))         {             return false;         }          //  check length         if (nric.Length != 9)         {             return false;         }          int total = 0             , count = 0             , numericNric;         char first = nric[0]             , last = nric[nric.Length - 1];          if (first != 'S' && first != 'T')         {             return false;         }          if (!int.TryParse(nric.Substring(1, nric.Length - 2), out numericNric))         {             return false;         }          while (numericNric != 0)         {             total += numericNric % 10 * Multiples[Multiples.Length - (1 + count++)];              numericNric /= 10;         }          char[] outputs;         if (first == 'S')         {             outputs = new char[] { 'J', 'Z', 'I', 'H', 'G', 'F', 'E', 'D', 'C', 'B', 'A' };         }         else         {             outputs = new char[] { 'G', 'F', 'E', 'D', 'C', 'B', 'A', 'J', 'Z', 'I', 'H' };         }          return last == outputs[total % 11];      }      public static bool IsFinValid(string fin)     {         if (string.IsNullOrEmpty(fin))         {             return false;         }          //  check length         if (fin.Length != 9)         {             return false;         }          int total = 0             , count = 0             , numericNric;         char first = fin[0]             , last = fin[fin.Length - 1];          if (first != 'F' && first != 'G')         {             return false;         }          if (!int.TryParse(fin.Substring(1, fin.Length - 2), out numericNric))         {             return false;         }          while (numericNric != 0)         {             total += numericNric % 10 * Multiples[Multiples.Length - (1 + count++)];              numericNric /= 10;         }          char[] outputs;         if (first == 'F')         {             outputs = new char[] { 'X', 'W', 'U', 'T', 'R', 'Q', 'P', 'N', 'M', 'L', 'K' };         }         else         {             outputs = new char[] { 'R', 'Q', 'P', 'N', 'M', 'L', 'K', 'X', 'W', 'U', 'T' };         }          return last == outputs[total % 11];     } 
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Can anyone explain the algorithm for 2-satisfiability problem or provide me the links for
Does anyone know where I can find an implementation of an algorithm to convert
I need to compare string into following way. Can anyone provide me some insight
can anyone provide an example of an algorithm with minimal running time complexity of
Can anyone provide me with a parallel algorithm for calculating the sparse Cholesky factorization?
Can anyone provide some links to good information on setting up Silverlight 2.0 to
Can anyone provide me with a hello world example for a major mode in
Can anyone provide me an example of how to use WM_CLOSE to close a
Can anyone provide details on what the three of these mean? System::ContainerStartTime System::CreationDate System::StartTime
Can anyone provide some information on how to run an integration services package, on

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.