Class: Integer

Inherits:
Object show all
Defined in:
lib/BOAST/Algorithm.rb

Instance Method Summary collapse

Instance Method Details

#to_var ⇒ Object



1677
1678
1679
1680
1681
1682
1683
# File 'lib/BOAST/Algorithm.rb', line 1677

def to_var
  if self < 0 then
     return BOAST::Variable::new("#{self}", BOAST::Int, :signed => true, :constant => self )
   else
     return BOAST::Variable::new("#{self}", BOAST::Int, :signed => false, :constant => self )
  end
end