Feeds
已回答
Hi guys. I need help splitting a number into its individual parts and then add them. E.g. the number would be 1994 = 1 + 9 + 9 + 4 = 23
yyyy = 1994; % dig = digits extract // Ziffern extrahieren - mit Mathe, nicht mit Strings!! dig_t = floor (yyyy / 1000);...
Hi guys. I need help splitting a number into its individual parts and then add them. E.g. the number would be 1994 = 1 + 9 + 9 + 4 = 23
yyyy = 1994; % dig = digits extract // Ziffern extrahieren - mit Mathe, nicht mit Strings!! dig_t = floor (yyyy / 1000);...
7 years 前 | 0