lib/instructions/conversion/float_from_int.rb in nudge-0.2.6 vs lib/instructions/conversion/float_from_int.rb in nudge-0.2.7
- old
+ new
@@ -1,4 +1,13 @@
+# pops the top +:int+ item;
+# pushes a new +:float+ item,
+# with value obtained by applying #to_f to the value
+#
+# *needs:* 1 +:int+
+#
+# *pushes:* 1 +:float+
+#
+
class FloatFromIntInstruction < Instruction
def preconditions?
needs :int, 1
end
def setup