I'm revisiting an old classic ASP application to add some new requisites, one of them needs to perform an aritmethic operation to generate an id according to some standard rule for bank files which:
- Generates a number from a long string according to some rules
- Gets mod of dividing this long number by 97
- Substracts this result to 98
- And preppends a 0 if result is only one digit
The number I get as result of first operation is 1185626240142800 (many many magnitudes over max long number), I can convert to Double but then I can't get mod 97
.
This rule is a standard for bank files so there is no workaround, I need to perform these operations.
In my Windows 7 64 bits I saw I can perform this operation in SQL Server, so as a bad hack it's not a bad idea, any other ideas?
BTW, this app will run on a Windows server 2003 32 bits, in case you think this will be an added problem