[GoLUG] [parse] Line-izer preprocessor

Ron / BCLUG admin at bclug.ca
Sun Nov 19 16:38:17 EST 2023


Steve Litt wrote on 2023-11-19 12:37:

> The customary exponentiation operator is either ^N or **N where N is an 
> exponent

Yeah, this is correct.


It's worth checking which notation a language uses, as ^N means bit-wise 
shift(?) in at least one language.


Which means the compounding interest calculator give very plausible 
answers for certain inputs, but slowly diverges wildly from accurate 
with other inputs.


Which can send some poor sucker on a long journey trying to figure out 
the bug in the interest calculator, re-writing it repeatedly, testing 
and testing and testing some more.


Then, trying same equation in another language.

Where the ^N notation throws an error.

Finally realizing the notation issue.



Gah, I want that day and a half of my life back.


rb




More information about the GoLUG mailing list