-
Notifications
You must be signed in to change notification settings - Fork 233
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
Space between numerical value and unit symbol for SI output #21
Comments
Seconded-- should be the same for bytes. |
I think I'm in favor. |
It'd be fairly hard to make this configurable. I suppose it's the right thing to do, but it will take up seemingly unnecessary space in areas I use it where space is scarce and seemingly will just reduce clarity by taking logically grouped units and separating them into multiple parts. e.g., instead of
I'd have
|
dustin, it only reduces clarity when you have it ambiguously spaced like in your example. These are the SI conventions. Right now I'm using regex to put the space in there! |
👍 |
full diff: dustin/go-humanize@8929fe9...v1.0.0 probably most relevant change: - dustin/go-humanize@64dbdae Add space between the numbers and units - closes dustin/go-humanize#21 Space between numerical value and unit symbol for SI output - related: dustin/go-humanize#32 no space between bytes and units Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Very nice collection here. Just a niggle - SI convention calls for a space between the number and the unit: 1 m, 10 kg, 123 mS ... etc
http://physics.nist.gov/Pubs/SP811/sec07.html
The text was updated successfully, but these errors were encountered: