Skip to content

Underscores in numeric literals #2228

@philderbeast

Description

@philderbeast

Please allow for underscores in numeric literals.

# scratch.u
x : Float
x = 0.000_000_000_001

# ucm
This looks like a function call, but with a Float where the function should be.  Are you missing an operator?

      2 | x = 0.000_000_000_001
# scratch.u
unique type GeodeticAccuracy = GeodeticAccuracy Float

defaultGeodeticAccuracy : GeodeticAccuracy
defaultGeodeticAccuracy = GeodeticAccuracy 0.000_000_000_001

# ucm
This looks like a function call, but with a GeodeticAccuracy where the function should be.  Are you missing an operator?

      4 | defaultGeodeticAccuracy = GeodeticAccuracy 0.000_000_000_001

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions