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

Fix Formatter.floatformat and Object.to_format #1602

Merged
merged 2 commits into from
Nov 6, 2024

Commits on Nov 6, 2024

  1. fix: change float format specifier in Object.to_format

    Fix the float format specifier in Object.to_format. If there is a float
    stored in a Object such as 3.14, it would be printed out as 3 because
    the format specifier is %d but should be %g.
    konimarti committed Nov 6, 2024
    Configuration menu
    Copy the full SHA
    94e8fd7 View commit details
    Browse the repository at this point in the history
  2. fix: print nan in floatformat

    Fix floatformat to print 'nan' if float is nan. Currently,
    io::printn(float.nan) will produce 'inf' instead of 'nan'.
    konimarti committed Nov 6, 2024
    Configuration menu
    Copy the full SHA
    c8e9a7a View commit details
    Browse the repository at this point in the history