How to convert from ascii to its ingeger number

Hi, I have a quastion, I am currently passing in a number as a string to my function (this is hard to change since its a program that generates the numbers).

For example i pass the number function random(‘252’), but what I want is this
function random(252).

So my quastion is, do you guys have a clever idea on how to take this string, this ascii number and convert it to its “real” integer value, so that i can make correct calculations?

Thaks

Nah, we don’t do that :slight_smile:
Could you post the answer for other members who might be having the same question to see?

Never mind, solved it, admin can trash this thread :slight_smile: