Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Jan 23, 2013, 06:32 AM   #1
idelovski
macrumors regular
 
Join Date: Sep 2008
IBAN checking/creating

I suppose some of you have heard about IBAN standard for bank accounts (WIKI).

In essence, I need to do mod operation on a very big number and it seems like unsigned long long isn't big enough, at least for accounts in my country. Any advice how to do it? Is libtom my only choice?
__________________
GlideShow - Slideshows with images from Reddit, Facebook, Flickr, Dropbox, SkyDrive & Google.

Last edited by idelovski; Jan 23, 2013 at 09:00 AM. Reason: some you -> some of you
idelovski is offline   0 Reply With Quote
Old Jan 23, 2013, 07:03 AM   #2
subsonix
macrumors 68030
 
Join Date: Feb 2008
That wiki page you linked to tells you how you can do it in a piece-wise manner, described in 4 steps. Under modulo operation on IBAN: http://en.wikipedia.org/wiki/Interna...ration_on_IBAN
subsonix is offline   0 Reply With Quote
Old Jan 23, 2013, 08:58 AM   #3
idelovski
Thread Starter
macrumors regular
 
Join Date: Sep 2008
Thanks,

since I needed to genereate those iban prefixes and the solution on that page is related to validation at first I didn't look at it too deep, but now I realized there are only 100 combinations (from '00' trough '99') so I can just loop and check each value. The good one should surface very quickly.
__________________
GlideShow - Slideshows with images from Reddit, Facebook, Flickr, Dropbox, SkyDrive & Google.
idelovski is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
Checking the storage capacity? kat.hayes iPhone 1 Dec 17, 2013 07:37 PM
Checking an iMac from US to EU Transmaro iMac 29 Jul 26, 2013 07:54 AM
iPhone: Checking for update? BullittMustang Jailbreaks and iOS Hacks 6 Feb 25, 2013 09:44 AM
Help with spell checking SpetsnaZ99 Mac Basics and Help 0 Aug 11, 2012 04:19 AM

Forum Jump

All times are GMT -5. The time now is 02:28 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC