class Float
Public Instance Methods
to_var()
click to toggle source
Creates a constant BOAST
Real Variable with a name corresponding to its value.
# 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