Percentages and ratios
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 48/100
Direzione di ricerca
Inizia confrontando l’API proposta per ratio e percent con la personalizzazione della precisione di precisedelta. Verifica gli input ratio e percent, il troncamento, la precisione decimale opzionale e la formattazione richiesta della stringa percent; il completamento deve includere la copertura nei test esistenti del progetto.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Hello, thanks a lot for this great package !
If I'm not mistaken there is no feature yet to humanize a ratio (between 0 and 1) or a percentage (between 0-100).
It could be a great addition ! It can be just one function to handle both, with two possible inputs (ratio= or percent=). The outcome would in both cases, be a truncated percent string with optional decimal coma up to a given precision, as in 12,5%. Customization of precision with a number of decimal could be similar to precisedelta's precision customization with the units.
- Lingua principale
- Python
- Stelle
- 757
- Fork
- 148
- Merge medio
- 6g 1h
- PR unite (30g)
- 12
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di python-humanize/humanize
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
python-humanize/humanize#379 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
python-humanize/humanize#366 ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 52/100
python-humanize/humanize#356 · 2 commenti ·
-
bug
Difficoltà 4/5 3-5 giorni Idoneità per principianti 45/100
python-humanize/humanize#270 · 6 commenti ·
-
help wanted
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
python-humanize/humanize#263 · 3 reazioni ·
Tutte le issue di python-humanize/humanize
Issue simili
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 90/100
learningequality/ricecooker#747 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
BSData/horus-heresy-3rd-edition#3171 ·
-
enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
run-llama/llama_index#23199 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
KhronosGroup/glTF-Blender-IO#2769 ·