J
Junkone
how do i truncate the float to 2 decimals
irb(#<Object:0x3d95578>):001:0> f=0.911501706632285
=> 0.911501706632285
irb(#<Object:0x3d95578>):001:0> f=0.911501706632285
=> 0.911501706632285
how do i truncate the float to 2 decimals
irb(#<Object:0x3d95578>):001:0> f=0.911501706632285
=> 0.911501706632285
Junkone said:how do i truncate the float to 2 decimals
irb(#<Object:0x3d95578>):001:0> f=0.911501706632285
=> 0.911501706632285
=> "0.91"how do i truncate the float to 2 decimals
irb(#<Object:0x3d95578>):001:0> f=0.911501706632285
=> 0.911501706632285
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.