Class: Float

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

Instance Method Summary collapse

Instance Method Details

#to_varObject

Creates a constant BOAST Real Variable with a name corresponding to its value.



227
228
229
230
231
# File 'lib/BOAST/Language/Algorithm.rb', line 227

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