Class: Float
- Inherits:
-
Object
- Object
- Float
- Defined in:
- lib/BOAST/Language/Algorithm.rb
Instance Method Summary collapse
-
#to_var ⇒ Object
Creates a constant BOAST Real Variable with a name corresponding to its value.
Instance Method Details
#to_var ⇒ Object
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 |