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

Ask A Question

Stats

  • Questions 78k
  • Answers 78k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • added an answer Valgrind comes with some default error suppression, but that probably… May 11, 2026 at 3:57 pm
  • added an answer The main reason for the character classes is so that… May 11, 2026 at 3:57 pm
  • added an answer The mod_wsgi documentation on code reloading is your best bet… May 11, 2026 at 3:57 pm

Related Questions

For a personal project of mine, I'm writing up a small class to compress
Seems that requirements on safety do not seem to like systems that use AI
I've got a table with a large number of rows that is not suitable
In C++/CLI , you can use native types in a managed class by it

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.