Skip to content
This repository has been archived by the owner on Mar 1, 2024. It is now read-only.

Non-default thousands separator #103

Closed
wants to merge 1 commit into from
Closed

Non-default thousands separator #103

wants to merge 1 commit into from

Conversation

t-bltg
Copy link

@t-bltg t-bltg commented Sep 28, 2021

Add the ability to change the default thousands separator.

julia> using Formatting
julia> Formatting.THOUSANDS_SEPARATOR[] = ' ';
julia> format(1_000_000, commas=true)
"1 000 000"

No performance penalty observed.

Fix #45.

@ScottPJones
Copy link
Collaborator

I don't think adding global state is a good idea at all.
This can be added with a keyword argument to format, such as sep='_'

@kescobo
Copy link
Member

kescobo commented Mar 1, 2024

This package is no longer maintained (see #111). Please consider using Format.jl instead, and if this feature is unavailable / still desired, open an issue or PR there.

@kescobo kescobo added the wontfix label Mar 1, 2024
@kescobo kescobo closed this Mar 1, 2024
@t-bltg t-bltg deleted the sep branch March 2, 2024 10:06
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

option for using different thousands separator
3 participants