Converting strings to integer and sum?



  • is it possible to convert string values to integer and sum these integer values?

    For example the string is serial number:

    Ab12345Cd6789Ef



  • Someone made a video about this...



  • @d-healey Thank you! Yes I know this guy 🙂

    Actually I am just trying to make a serial number decoder formula. For this formula I need the summed integer values of the serial number string.

    I tried that but it doesn't work. How can I create an array of this 9 digit serial number and sum?

    const var serial_number = "e7Y1qdAS";
    
    for(index = 0; index < 9; index++)
    {
         Console.print(serial_number.charCodeAt(i));
    }
    
    
    
    HiseSnippet 710.3ocsU0tSaCCE0tTOQyVkFR6AHhe0JXUoa70DaZ.8iopsBUKLz1uPFGWpEI1YNNLpP7Nu2fsqSJzzsBBUIR+StebbO9dO2aFnULdRhRivUNdbLGgeAwerzLp0HpPh50FgWljXzB44nCFGSSR3AHLdoOYihqTFk876Od.MjJY7otPnSTBF+KhHgYp2A68YQXXWZ.+XQTgr2XudLkrkJTkBLYIhGJlxtfdN+PpMsRDD9YcBDFk12PM7DDt7Apfw9iT+Rlm+IhDwYgbqQSjObP4t6pBCrL15E0ZjHLXvs23DDbJCld+WJ+9+JReQf3N+SqCuLKf6TDEqG3ROD8ZVjddOd5gKPux4zaEhOSKhMSiX41yI8jFtdHEZAEoUdtnR8wjVJHCooQD8BdWMXbGhZa44st6ldd02spi8GzJRLtWR0tIbsfFdpLM5Lt18Ctqx29GM+Yv99qlk5PktlPFvuBB4sqa9qu28cSdcs0pW045pNt1G3+OQExaDCZISsYN3FrQTcKU.eeSMQcKKtI6zSkLiPIcUxCUF9QxZ0ct1ohyMNt+angCmaL6cVqBC454F1pA0ODvZ47acnVDlxuKQnYLa2lb+c6hhQVdKnPhJYOovbTLWdeZ.zj9F71250lZnVYwDePdwbsQXo.tM+RXdKWjTgzlmbgQECSb+mBBzwpfzPpYVwschdR.nFLiJxpTjIBy3hS7OIJ9GKcWgLPXXilOeKMG9BUsmZ9NY+QURmgC4LyTxVlz86O8KKPeUkZf0z8ov15q.M4goQ9v5TFGXhTxCs5TbIqhJ21yZaqL9bYPlw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Ys4Hm0mib1XNxYy4Hmst2bLeIbuTsLJeLAbLrW1ZDLtmf.prLEI5u.IAUPrB
    


  • @d-healey Awesome, Perfect as always... and Thank you!!!!!!! 😎


Log in to reply
 

13
Online

1.2k
Users

3.8k
Topics

33.5k
Posts