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
retain-zero-exponent = true behaviour change #565
Comments
(Also the string seems gone from the documentation) |
Also, in a similar fashion now |
This is 'by design'. I was not happy in v2 that the same values could end up printing differently, as I wasn't careful enough about normalisation of input. In v3, I've tightened up the option names to show where the choice is made: this one is now |
Hum, so what you say is that there is no way to have a different output for |
Would a third option I'm not sure if there is any precedent for something like this and if this coupling of input and output is undesired, but I also want to mix both settings in the same document (depending on the context of the number) and being able to control the omission of these possibly redundant number parts by just inputting it accordingly used to be rather handy. At least for |
@schtandard Thanks for your input on this, very good points and idea! |
Another option could be to handle this like |
I gave this a bit of thought and decided that @schtandard's pint about significant figures is reasonable. I've adjusted the code so the parser retains that difference: I may look at an option to normalise |
@ArchangeGabriel Will that work for you? I'm more reluctant to change the parsing of exponents, as I think all numbers do have an order of magnitude |
Yeah, as I said So thanks for fixing the no-mantissa case, that was actually my biggest grief (but I’ve discovered the change a bit after since the first case appears later in my lectures). :) |
In v3, this now adds a ×10⁰ to things like
\num{7}
, while previously it would only display for\num{7e0}
. Is there a way to fix that?The text was updated successfully, but these errors were encountered: