Format: Get rid of #{...}

Hi,
I don't figure out how to change the format of

#{141}

to simply

141

in order to be able to use it in a script like this:

a = #{141}
b = 1
c = a + b

Does anyone know how to do this? It is certainly very easy to do.
But I don't find it. :)

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
kilad's picture

use regular indexing a =

use regular indexing

a = #{141} as array
c = a[1] + b

jos's picture

omg, can't believe I said

omg, can't believe I said a.count
thanks for correcting

jos's picture

a.count --returns 141

a.count --returns 141

Ewok's picture

That works. Thanks a

That works.

Thanks a lot.

Ewok

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.