Skip to content

Printing double numbers #85

@woodholly

Description

@woodholly

How to print Double number in ordinal, non-exponential form ?
For example, I can turn it into exponential form:
console.log(new Double('10000000000').div(new Double('3')).toExponential());
'3.333333333333333333333333333333350e+9'
But how to turn it into string:
'3333333333.333333333333333333333333' ?

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