Would you like to react to this message? Create an account in a few clicks or log in to continue.

You are not connected. Please login or register

How do you do an exponent in the Function component?

2 posters

Go down  Message [Page 1 of 1]


I've tried a few different ways.  Strangely, it treats ^ like +.



JavaScript operators should work.
For exponentiation I think you can use: **, for example 2**3 = 8.

Strangely, it treats ^ like +.
^ is the bitwise XOR operator, which works very similar to +.


Thanks, I'll give it a try.  Also, I'm so use to ^ meaning exponent that I completely forgot it's also XOR.


Nope, doesn't work.  But no biggie, there are workarounds.

Sponsored content

Back to top  Message [Page 1 of 1]

Permissions in this forum:
You cannot reply to topics in this forum