{
                  
                  
                    const multiplier = Math.pow(10, fractionDigits);
                  
                  
                    const negativeCompensator = this < 0 ? -1 : 1;
                  
                  
                  
                  
                  
                    return Math.round((this * negativeCompensator + 1e-15) * multiplier) / multiplier * negativeCompensator;
                  
                  
                  }
                  
                  
                
что за константа 1e-15 такая?
Обсуждают сегодня