Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: dcNiko Vujke
  Where is dcNiko Vujke?
 Belgrade
 Serbia
 dcNiko Vujke
 To: Leonid Lepin
  Where is Leonid Lepin?
 Riga
 Latvia
 Leonid Lepin
 Tags
Subject: RE: 20 digit number problem
Thread ID: 286880 Message ID: 289130 # Views: 26 # Ratings: 0
Version: Visual FoxPro 9 SP2 Category: Errors & Debugging
Date: Tuesday, December 28, 2010 3:23:28 PM         
   


> > Is this the right way of calculation:
> >
> > lnZ97-lnZ972=
> > MOD(lnZ97,97)=
> > MOD(VAL(pDep)*10000000000000+VAL(pRH)*10000000000+VAL(pPart),97)=
> > VAL(pDep)*MOD(10000000000000,97)+VAL(pRH)*MOD(10000000000,97)+VAL(pPart)=
> > VAL(pDep)*15+VAL(pRH)*49+VAL(pPart)
>
> Not exactly. More correctly it will be
>
> lnZ97-lnZ972=
> MOD(lnZ97,97)=
> MOD(VAL(pDep)*10000000000000+VAL(pRH)*10000000000+VAL(pPart),97)=
> MOD(VAL(pDep)*MOD(10000000000000,97)+VAL(pRH)*MOD(10000000000,97)+VAL(pPart),97)=
> MOD(VAL(pDep)*15+VAL(pRH)*49+VAL(pPart),97)
>
> Leonid

OK, thanks a lot Leonid.

Regards,
Nikola.

ENTIRE THREAD

20 digit number problem Posted by dcNiko Vujke @ 12/7/2010 11:03:59 AM
RE: 20 digit number problem Posted by Leonid Lepin @ 12/7/2010 1:34:48 PM
RE: 20 digit number problem Posted by dcNiko Vujke @ 12/8/2010 9:45:49 AM
RE: 20 digit number problem Posted by Leonid Lepin @ 12/8/2010 10:07:24 AM
RE: 20 digit number problem Posted by dcNiko Vujke @ 12/13/2010 9:02:01 AM
RE: 20 digit number problem Posted by Leonid Lepin @ 12/13/2010 10:26:34 AM
RE: 20 digit number problem Posted by dcNiko Vujke @ 12/28/2010 3:23:28 PM