How do i extract the last digits from a number?

Buenos días. ¿Cómo se haría en caso de qué se desee substraer los últimos dígitos de un número? Es decir, de la siguiente cifra 10114522, yo deseo es 4522.

Hello @europanafasetres,
This is a different question/topic. So, @Kal_Lam might move it to a separate thread.
A similar question has been discussed in the forum recently. See
https://community.kobotoolbox.org/t/is-it-possible-to-use-right-function-in-calculate/25088/2.
In your case, it would be YourNumber mod 10000.
You may always give the search function of this forum a trial, please. For ex. https://community.kobotoolbox.org/search?context=topic&context_id=25256&q=extract%20digit&skip_context=true

1 Like

@europanafasetres, this is how @wroos has advised you how to do it:

In the survey tab of your XLSForm:

Image 1

Data entry screen as seen in Enketo:

Reference XLSForm:

MOD operator.xls (32.5 KB)

Thank you @wroos for sharing this with the community!