Welcome to the SRP Forum! Please refer to the SRP Forum FAQ post if you have any questions regarding how the forum works.
SRP_Math
At what point does OI start treating a number as zero?0.0000001 (how many zeros need to be in the example)?
I assume this equally affects math functions x / + - and also comparisons like Loops and If statements?
Thanks for any help in understanding this.
I assume this equally affects math functions x / + - and also comparisons like Loops and If statements?
Thanks for any help in understanding this.
Comments
If you use the SRP_Math "COMPARE" service, then 1E-X is never equal to zero.
A = "0123456789987654321" Ans = A + A
But this code will perform the addition no problem:
A = "0123456789987654321" Ans = SRP_Math("ADD", A, A)
As I recall, OI 10 added extended precision operators to Basic+.