Class: Float

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

Instance Method Summary collapse

Instance Method Details

#to_varObject



276
277
278
279
280
# File 'lib/BOAST/Language/Algorithm.rb', line 276

def to_var
  v = BOAST::Variable::new("#{self}", BOAST::Real, :constant => self )
  v.force_replace_constant = true
  return v
end