php / php/php-src

bcmath functions to support scientific notation numbers

Aperta
#17,876 3 commenti 1 reazione 1 assegnatario Vedi su GitHub

@SakiTakamachi ci sta già lavorando.

Dal 22/2/2025.

Extension: bcmath Feature Status: Requires RFC
Lingua principale
C
Stelle
40.4k
Fork
8.1k
Merge medio
2g 13h
PR unite (30g)
96

Descrizione

Description

I occurred a problem with bcmath functions, bcadd, bcround specifically, where they do not support scientific notation numbers, for example 2.3314683517128E-14.

A solution that I found online was to use as bcround(sprintf("%.20f", (float)$rest['nett']), 9), but it is a bit hard to do that everywhere.

Wouldn't it be more logical for bc* functions to support 2.3314683517128E-14 since they support 0.0000000000000023314683517128 for example

Guida per i contributori

Apri la guida per i contributori

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.

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.