how to force a decimal

S

shawn bright

[Note: parts of this message were removed to make it a legal post.]

Hey there all,

This should be simple. I need to know how to force a decimal place.

say i wanted to do 3.5.to_s
but i need that to be 3.50 as the string,

how would i do this?

thanks
 
S

shawn bright

[Note: parts of this message were removed to make it a legal post.]

cool, thanks much !
 

Ask a Question

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.

Ask a Question

Members online

Forum statistics

Threads
473,774
Messages
2,569,598
Members
45,150
Latest member
MakersCBDReviews
Top