Float's are truncated

Aperta
#913 6 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
48/100
Tipo di issue
Documentazione
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
javascript
Ambito
documentation

Direzione di ricerca

Start by locating the documentation for printf-style formatters and verify how %d and %o handle floating-point values. Update the relevant documentation to describe the observed truncation and available formatting behavior; treat the suggested precision syntax as a separate feature question unless the project documentation identifies an existing scope for it.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

The %d formatter coerces any floating point number such as 0.3123 to an integer.

The documentation should mention this.

The only way I could find to print the full number is to use %o .

It would be nice to have better printf style control e.g. %d3 to print 3 sig figures.

Lingua principale
JavaScript
Stelle
11.5k
Fork
992
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di debug-js/debug

Tutte le issue di debug-js/debug

Issue simili

Altre issue su JavaScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.