this question has answer here:
i want variable hold number can't assigned negative number, myvar = -1
end being 0
. can make own class this, ruby come one?
no, you'll need handle validation of value on own. here's more info on different ruby numerical types: http://www.techotopia.com/index.php/ruby_number_classes_and_conversions
Comments
Post a Comment