Absolute value in Spin2
jcfjr
Posts: 74
in Propeller 2
I am using the following statement to determine the absolute value of genword2
genword2 :=||(frequency1-oldfrequency)
Compiling this in Spin2 generates an error message on the ||. Seems this has changed in Spin2. How would I write the above line in Spin2?
Comments
Try:
genword2 := abs (frequency1-oldfrequency)
dgately
Thank you.
Some operators have changed from Spin1 to Spin2 -- have a look in the online docs:
-- https://docs.google.com/document/d/16qVkmA6Co5fUNKJHF6pBfGfDupuRwDtf-wyieh_fbqw/edit#
Note that there is no short-cut in the sidebar for Operators, so click on Expressions (Spin2 Language section) and scroll down to the next page.