Skip to content
  • Home
  • Account
  • Restricted content
  • OBEX
  • Chips Tips
  • Logout
  • Shop
  • Blog
Propeller OBEX
  • OBEX
  • Forum
Login
Propeller OBEX

Propeller 1

  • How to pause in PASM
  • How to choose between VAR and DAT
  • WAITPEQ and WAITPNE with PASM
  • IO pin manipulation using PASM
  • Control IO pins from any cog
  • 3D Models for Parallax Products
  • Implementing Abstract Data Structures with Spin Objects
  • Making in USA - The Parallax 8 core microcontroller
  • Simultaneous pin group control
  • Programming the FLiP module over WiFi
  • Keep any value in range
  • Handy Diagnostic Heartbeat
  • Customer Code Deployment in one click

Propeller 2

  • Floating point operators in SPIN2
  • 64/96/128-Bit Unsigned Integer Math
  • 3D Models for Parallax Products
  • DEBUG Plot Layer and Crop
  • Floating point
  • Getting Started Video Tutorials
  • Using the counter for timeouts
  • asmclk and the automatic clock setter
  • Sharing variables between SPIN2 and PASM2
  • Keep any value in range
  • Determine pin state - High, Low or Floating?
View Categories
  • Home
  • Docs
  • Chips Tips
  • Propeller 2
  • Floating point operators in SPIN2

Floating point operators in SPIN2

Reading Time: < 1 min read

SPIN2

Introduction #

The SPIN2 language has been extended from version 51 to include new Floating point operators. They can be used in CON blocks as well as regular code.

For the latest version of the SPIN2 specification, visit the language reference linked in resources!

Operators #

These operators are available in the latest version of the SPIN2 compiler.

In case they are not enabled by default, add the v51 tag at the top of your source code to enable them:

{Spin2_v51}
Operator nameDescription
POWFloating-point x-to-power-of-y function
LOG2Floating-point base-2 logarithm function
EXP2Floating-point 2-to-power-of-x function
LOG10Floating-point base-10 logarithm function
EXP10Floating-point 10-to-power-of-x function
LOGFloating-point natural logarithm function
EXPFloating-point e-to-power-of-x function

Resources #

Parallax Propeller 2 - Spin2 Language Documentation


Was this useful ?
Share This Article :
  • Facebook
  • X
  • LinkedIn
Still stuck? How can we help?

Still stuck? How can we help?

Updated on March 17, 2025
64/96/128-Bit Unsigned Integer Math
Table of Contents
  • Introduction
  • Operators
  • Resources

Copyright © 2025 - Parallax Inc.
599 Menlo Drive | Rocklin, CA 95765 | USA