* unbewust <yvon.thoraval / gmail.com> (17:31) schrieb:

>> num = "775".to_i(8)
>> dec = num.to_s             #> "509"
>> oct = num.to_s(8)          #> "775"
>
> i've allready a way to output my number as an octal "775" BUT i'll
> like having better "0775" because in the C language the first 0 means
> octal and i ask for xhen input .

I don't quite understand the purpose of your extension. Normally you do
interaction with the user in ruby code.

mfg,                     simon .... l