Skip to content

Number with a dot before e in scientific notation returns two dots in JavaScript #5469

@lulunac27a

Description

@lulunac27a

Choose one: is this a bug report or feature request? Bug report

Input Code

Example code:

1.e1

And another example:

1.e-1

Expected Behavior

1.e1;

and

1.e-1;

Current Behavior

1..e1;

and

1..e - 1;

Possible Solution

Remove a dot or add a 0 after the dot if there is no number after the dot and before the e in scientific notation.

Context

Using scientific notation with decimals

Environment

  • CoffeeScript version: 2.7.0

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