rlwhitcomb / utilities

Some of my personal utility programs
MIT License
2 stars 0 forks source link

Add the "-" flag to "f" and "F" formatting to omit the spaces around the "/" #649

Closed rlwhitcomb closed 5 months ago

rlwhitcomb commented 5 months ago
0.9375@-f -> 15/16
0.9375@f -> 15 / 16
1.9375@+F -> 1 15 / 16
1.9375@F -> 1 15/16
rlwhitcomb commented 5 months ago

We're going to make a slight spec change here: @f formatting will normally have spaces, unless the - flag is used, while @F formatting will not unless the + flag is used. Using @F previously was inconsistent: straight fractions only used to have spaces, while mixed values would not ... This will necessitate some test/canon file changes.

The related change is that "alwaysProper" fractions (as for Complex numbers and Quaternions) will always NOT have spaces.

This all "seems" more consistent to me now.