30.06.2017, 09:37
Can be done with modulo (%) operator:
Code:
value = 253
v3 = value % 10
v2 = math.floor(value / 10) % 10
v1 = math.floor(value / 100)