It might help if I posted the example code. Typed numeric functions appear to work, but this isn't documented, so I'm not sure I want to depend on them.
I guess syntax highlighting works about as well here as it does in 920.
ProgramFibbertigibbetFori%=0To100j&=-1@Fibonacci(j&,i%)Printj&,Nexti%PrintPrintPrint@Fib&(0),@Fib&(200)PrintFibMax%,FibLim%,Dim?(FibMemo&())End' Apparently typed numeric functions work now?DefFnCLng%(N)=N' Is it OK for a function to have hidden mutable state?FunctionFib&(N%)LocalR&R&=-2GoSubFibonacci(R&,N%)ReturnR&EndFunction' When you absolutely, positively need to know the return type' or if there might be horrible, awful, no good side effects' IN N%' OUT R&' IN/OUT ' GLOBAL FibMemo&(), FibMax%, FibLim% ! Oh noes, mutable state!ProcedureFibonacci(VarR&,N%)' Static FibMemo&(), FibMax%, FibLim% ! Oh noes, mutable state!IfFibLim%<=N%ThenFibLim%=N%+(N%Div8)+4!AvoidworstcasereallocbehaviorDimFibMemo&(FibLim%)!MoreorlessequivalenttoREDIMPRESERVEEndIfIfFibMax%=0Then' Bootstraps, bootstrapsFibMemo&(0)=1FibMemo&(1)=FibMemo&(0)!+FibMemo&(???)FibMax%=1EndIfWhileFibMax%<N%' To iterate is human, especially human with only a mortal lifespanIncFibMax%FibMemo&(FibMax%)=FibMemo&(FibMax%-1)+FibMemo&(FibMax%-2)WendR&=FibMemo&(N%)Return
Last edit: Yet Another Troll 2019-05-29
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi Troll, I have not looked deeply into it, but you should know: The big number algorithms currently do not work with the Android Version posted on F-droid app store. However they did work with the version on the G* Play Store.
The reason is, that the library used (libgmp) did not compile from sources (at least I could not manage to do so) which was a requirement for F-Droid. So I had to remove it. See the Issue here: https://gitlab.com/kollo/X11-Basic/issues/2
I am sorry, If big number supprt is the feature you need currently. There is an .apk file posted here in the Files section on Sourceforge, maybe you want to try this, but it is a rather old version.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I am still using the old 1.25.50 APK. Darn, I was hoping to use the built-in bignum support to help debug my own attempts at bignums using one ASCII digit or two BCD digits per character stored in strings. Once I feel I know what I'm doing, I may try radix 256 digits in a string then jump to radix 0x100000000 in dynamic integer arrays. All done in native xbasic, of course, no cheating with C or assembly. There will be bit bashing, oh yes.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
It might help if I posted the example code. Typed numeric functions appear to work, but this isn't documented, so I'm not sure I want to depend on them.
I guess syntax highlighting works about as well here as it does in 920.
Last edit: Yet Another Troll 2019-05-29
Hi Troll, I have not looked deeply into it, but you should know: The big number algorithms currently do not work with the Android Version posted on F-droid app store. However they did work with the version on the G* Play Store.
The reason is, that the library used (libgmp) did not compile from sources (at least I could not manage to do so) which was a requirement for F-Droid. So I had to remove it. See the Issue here: https://gitlab.com/kollo/X11-Basic/issues/2
I am sorry, If big number supprt is the feature you need currently. There is an .apk file posted here in the Files section on Sourceforge, maybe you want to try this, but it is a rather old version.
I am still using the old 1.25.50 APK. Darn, I was hoping to use the built-in bignum support to help debug my own attempts at bignums using one ASCII digit or two BCD digits per character stored in strings. Once I feel I know what I'm doing, I may try radix 256 digits in a string then jump to radix 0x100000000 in dynamic integer arrays. All done in native xbasic, of course, no cheating with C or assembly. There will be bit bashing, oh yes.