Ruby on Rails Discussions
Check to see if a num is Negative
rubyonrails-talk
Chris_Mear1
(Chris Mear)
June 7, 2007, 5:59pm
1
Just use one of the following:
difference > 0 difference >= 0 difference < 0 difference <= 0
Chris
Related topics
Topic
Replies
Views
Activity
Check to see if a num is Negative
rubyonrails-talk
5
247
June 8, 2007
Compare dates and get the difference
rubyonrails-talk
0
117
June 18, 2007
validates_numericality_of :not_equal_to
rubyonrails-talk
5
311
April 5, 2008
Newbie Code question
rubyonrails-talk
4
125
October 6, 2006
comparind dates
rubyonrails-talk
0
113
June 15, 2007