greenter icon indicating copy to clipboard operation
greenter copied to clipboard

problema con flotante epsilon php

Open p3dr0tg opened this issue 3 years ago • 0 comments

https://github.com/thegreenter/greenter/blob/dbd73675d09bef6b47925e05bc993a854cc50fdb/packages/xml/src/Xml/Templates/invoice2.1.xml.twig#L267

al pasar numero con 5 decimales le convierte a epsilon y eso trae problemas ejemplo $factor=0.00005 lo convierte a 5.0E-5 el tag deberia tener n_format_limit(5) para evitar esa conversión

p3dr0tg avatar Jun 16 '22 15:06 p3dr0tg