From 490dfa55835b167349dcc385980af84e8c9af352 Mon Sep 17 00:00:00 2001 From: Gwenhael Le Moine Date: Wed, 8 Dec 2021 16:08:14 +0100 Subject: [PATCH] INV result is a Float --- lib/core/operations.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/core/operations.rb b/lib/core/operations.rb index 3455246..4836cf6 100644 --- a/lib/core/operations.rb +++ b/lib/core/operations.rb @@ -238,7 +238,7 @@ module Rpl # inverse def inverse( stack, dictionary ) - stack << { value: '« 1 swap / »', + stack << { value: '« 1.0 swap / »', type: :program } Rpl::Lang::Core.eval( stack, dictionary )