Shop
OBEX
P1 Docs
P2 Docs
Learn
Events
Float number as constant? — Parallax Forums
toggle menu
Categories
Discussions
Sign In
·
Register
Sign In
·
Register
Categories
Discussions
Sign In
·
Register
×
Home
›
General Discussion
Float number as constant?
lardom
Posts:
1,659
2010-12-23 08:41
edited 2010-12-23 09:10
in
General Discussion
Is "Floatmath" required to write a decimal number in the CON block? I want to write "2pi = 6.283186" and eliminate a method call. Would all CON numbers then also have to be float?
Comments
lardom
Posts:
1,659
2010-12-23 09:10
edited 2010-12-23 09:10
OK! I admit I like the dialogue. I went back and typed "twopye = 6.283186" and pressed F9. I did find out that "2pi" is not allowed.
Sign In
or
Register
to comment.
Comments