New ProSens manual
ProSens in distributed systems
Prosens as a process controller
Prosens – input signals
General Algorithm for sum of digits in a given number: Get the number; Declare a variable to store the sum and set it to 0; Repeat the next two steps till the number is not 0; Get the rightmost digit of the number with help of remainder ‘%’ operator by dividing it with 10 and add it to sum. Print … If two parameters are given, number will be formatted with decimals decimals with a dot (".") Share a link to this answer. PHP | Sum of digits of a number Last Updated: 09-03-2018. The sum of the first and last digits is equal to third digit. Other versions get the string from start. I need to pull just the last four digits (2009). For example, and so on.