Skip to content

Support customizing how floats are serialized #1

@jwodder

Description

@jwodder

Add options for configuring the following aspects of how float values are serialized to JSON:

  • How many digits to show after the decimal point
  • Whether to remove trailing zeroes after the decimal point
  • Whether to use %e or %f format
  • %g format: Use %f if exponent is within a given range, otherwise use %e
  • Whether to place a + after an e?
  • Whether to use e or E?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request therefor

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions