Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

util: add %i and %f formatting specifiers #10308

Closed

Commits on Mar 25, 2017

  1. util: change %d to format a integer, add %i and %f

    This change brings formatting specifiers available in `util.format` and
    consequently, `console.*` closer to what is supported in all major
    browsers. There is a breaking change with the `%d` specifier which
    previously served a double purpose of formatting both integer and
    floats. With this change, it will format only as integer.
    
    - `%d` is being changed to format only as integer.
    - `%i` is introduced as an alias to `%d`.
    - `%f` is introduced to format floating point values.
    
    When updating code, all instances of `%d` format strings that
    were supplied with floats should be changed to the `%f` format string.
    
    Fixes: nodejs#10292
    silverwind committed Mar 25, 2017
    Configuration menu
    Copy the full SHA
    04143cf View commit details
    Browse the repository at this point in the history
  2. change %d to format number

    silverwind committed Mar 25, 2017
    Configuration menu
    Copy the full SHA
    bde7402 View commit details
    Browse the repository at this point in the history
  3. refactor for object lookup

    silverwind committed Mar 25, 2017
    Configuration menu
    Copy the full SHA
    f9b195b View commit details
    Browse the repository at this point in the history

Commits on Mar 27, 2017

  1. Revert "refactor for object lookup"

    This reverts commit f9b195b.
    silverwind committed Mar 27, 2017
    Configuration menu
    Copy the full SHA
    73455a7 View commit details
    Browse the repository at this point in the history