Skip to content

pi is hardcoded in unit tests #190

@ashwalk33r

Description

@ashwalk33r

Why pi is hardcoded in https://github.com/alexei/sprintf.js/blob/master/test/test.js#L10 as var pi = 3.141592653589793 where Math.PI exists which returns same number? Why to hardcode it?

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