Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FP Number Parse Idea #54

Open
NonstickAtom785 opened this issue Nov 24, 2020 · 0 comments
Open

FP Number Parse Idea #54

NonstickAtom785 opened this issue Nov 24, 2020 · 0 comments

Comments

@NonstickAtom785
Copy link
Contributor

I remember mentioning a while back the idea of making floats easier to use by incorporating a Float Mode instead of .'s for everything. Well I want to add on to that idea but in a different way using the i <- Imaginary I (displayed as a _ in the token hook)

_8+8->A      ;Adds the numbers together as a float and stores it to a float area.
_.23/3->_A   ;Divides .23 by 3 and stores it into the OS variable A
_sqroot(pi)  ;Take the float of pi and find the square root of it.
_tan(45)     ;Find the tangent of 45

The _ should work because the only other time it is used is for storing to OS variables. Plus it also removes all of the extra need to parse .. That goes to say that you could also do a Float Block. Just like how comments get passed over, you could do a check to see if the line is something like ._ and then end it with another ._. Of course you might think of a more clever way to do it but I just wanted to open the idea. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant