Skip to content

Number format for floats (prevent scientific notation) #1

Description

@GDmac

Some actions to fetch content in my app are fast (local vs remote).
And for fast actions since_last_mark returns something like 8.345e7.
i have added a number_format to force 5 decimals after
https://github.com/veloper/Bench/blob/master/class.Bench.php#L119

$mark['since_last_mark'] = number_format($mark['since_last_mark'], 5);

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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