Hello,
In my application form db I become double,
for example 10 => 10.00 or 10.2 => 10.20
id it possible?
Is there any function in Rails to it?
Hello,
In my application form db I become double,
for example 10 => 10.00 or 10.2 => 10.20
id it possible?
Is there any function in Rails to it?
Bober wrote:
Hello,
In my application form db I become double,
for example 10 => 10.00 or 10.2 => 10.20id it possible?
Is there any function in Rails to it?
Pure ruby:
puts â%02.02fâ % 10
puts â%02.02fâ % 10.2
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