Shop OBEX P1 Docs P2 Docs Learn Events
Absolute value in Spin2 — Parallax Forums

Absolute value in Spin2

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

Sign In or Register to comment.