Skip to content

Serialize numbers < 1e-15 or >= 1e+21 to scientific notation #27

@maciejhirsz

Description

@maciejhirsz

Currently codegen prints out plain integers and floats, but for large numbers using a scientific notation is desirable.

JS stringifies integers up to 1e+21 (exclusive). The floating precision varies, but going after the default value of Math.PI I'd assume 1e-15 being the boundary should be fine.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions