JS.
                  
                  
                  For example result for this multiplication in PHP: 2.8316 * 350.123 = 991.4082868
                  
                  
                  But in JS result: 991.4082867999999
                  
                  
                  How can I do in like JS?
                  
                  
                
Ping me when u get answear thx :)
Take a look at the bcmath functions, especially bcmul. https://www.php.net/manual/en/function.bcmul.php
Hi Ali, Have you checked: https://github.com/MikeMcl/decimal.js/ For js And BC math or: https://github.com/brick/math For php?
Обсуждают сегодня