bcmath functions to support scientific notation numbers
Abierto
@SakiTakamachi ya está trabajando en esto.
Desde el 22/2/2025.
Extension: bcmath
Feature
Status: Requires RFC
- Lenguaje dominante
- C
- Estrellas
- 40.4k
- Forks
- 8.1k
- Merge medio
- 2 d 13 h
- PR fusionados (30 d)
- 96
Descripción
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
Guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Evaluación
Este issue todavía no se ha evaluado.