Skip to content

FP Number Parse Idea #54

@NonstickAtom785

Description

@NonstickAtom785

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. :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions