Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR RUBY

rails always 2 decimal

'%.2f' % 500 # => "500.00"
 
PREVIOUS NEXT
Tagged: #rails #decimal
ADD COMMENT
Topic
Name
4+1 =