Hi,
I need to perform a modulo operation on a very big number (30 digits, could even be all 9's), is it even possible to do that in Navision?
If so, how would i do that? It would be a simple VARIABLE MOD 97 operation.
Also, the 'number' is stored in a Text variable, since obviously integer can't hold a number of this magnitude
0
Answers
'Standard' arithmetic is limited to 64bits which is about 16 digits in case of double precision decimal, or 19 digits for big integer.
Maybe some specialistic math software can handle it, NAV is not an exampe of one...
Dynamics NAV, MS SQL Server, Wherescape RED;
PRINCE2 Practitioner - License GR657010572SG
GDPR Certified Data Protection Officer - PECB License DPCDPO1025070-2018-03
Edit: Oh, classic forum... Then it works only when using the 2009 RTC.
And the CalculateModulus procedure
I took the solution from "CheckIBAN" from NAV2017
Even in 3Tier - are you sure the results are correct?
Dynamics NAV, MS SQL Server, Wherescape RED;
PRINCE2 Practitioner - License GR657010572SG
GDPR Certified Data Protection Officer - PECB License DPCDPO1025070-2018-03
Dynamics NAV, MS SQL Server, Wherescape RED;
PRINCE2 Practitioner - License GR657010572SG
GDPR Certified Data Protection Officer - PECB License DPCDPO1025070-2018-03