Skip to content

[QUESTION] Write float with fixed fixed number of digits after the decimal point  #171

@legendre6891

Description

@legendre6891

Question

I'm wondering if there is a set of option and formats which accomplishes the equivalent of %.[prec]f and %.[prec]e in printf() notation?

I tweaked the following set of parameters:

  • no_exponent_notation
  • min_significant_digits and max_significant_digits
    but due to the way significant digits are defined, it does not seem possible to replicate the %.[prec][e|f] behavior.

Metadata

Metadata

Assignees

Labels

questionFurther information is requested

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions