Hi all,
Does anyone use Fp plugin (originally Bob Delaney, now Einhugur) and mainly its BigInteger function fpIsItSquare?
In a simple project, I’m trying this function and my App (IDE or Compiled) crashes when the value is not a perfect square, whereas all is Ok when it is and the square root is correctly returned.
Here is the very simple code, in a PushButton:
Blockquote
Dim Bsq, NSquare , Temp As BigInteger
Bsq=New BigInteger(“65536”)
Do
NSquare=0
TextArea1.Text=Str(NSquare)+" - “+Str(Bsq)
Try
If fpIsItSquare(NSquare, Bsq)=True Then Exit Do
Catch err
TextArea1.Text=err.Message
End Try
Bsq=Bsq+1
Loop
TextArea1.Text=Str(NSquare)+” - "+Str(Bsq)
Blockquote
With “65536” value, I’m getting “256” as expected result.
With “65535” or any other value not a perfect square, the App crashes on fpIsItSquare function and no error is catched.
Any suggestion or idea welcome.
I will sent this post to Einhugur’s support, in addition.
TIA
Sorry, I forgot that:
iMac Intel, Mac OS Sonoma 14.4.1 French language
Xojo 2024r1.1
Fp plugin 12.5.1 (last Einhugur release)
1 post - 1 participant