lib/instructions/float/float_sqrt.rb in nudge-0.2.6 vs lib/instructions/float/float_sqrt.rb in nudge-0.2.7

- old
+ new

@@ -1,4 +1,14 @@ +# pops the top item of the +:float+ stack; +# pushes a ValuePoint with its square root onto the +:float+ stack +# +# note: pushes an +:error+ item if the value is negative +# +# *needs:* 1 +:float+ +# +# *pushes:* 1 +:float+ +# + class FloatSqrtInstruction < Instruction def preconditions? needs :float, 1 end def setup