How I get zerofill field?
I’m getting the value, but with no zeroes.
Thanks a lot.
–
Daniel K.
How I get zerofill field?
I’m getting the value, but with no zeroes.
Thanks a lot.
–
Daniel K.
Solved!
value.to_s.rjust(limit, ‘0’)
Thanks nobody!
On 11/23/05, Daniel K. [email protected] wrote:
How I get zerofill field?
I’m getting the value, but with no zeroes.Thanks a lot.
–
Daniel K.
–
Daniel K.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs