From c62a19a605cd6cc095b3f3c60025a9daa879ce85 Mon Sep 17 00:00:00 2001 From: Ludovic 'Archivist' Lagouardette Date: Tue, 7 Sep 2021 17:12:44 +0200 Subject: [PATCH] Simplify the implemented functions --- Functions/Multiply.cs | 2 +- Functions/Print.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Functions/Multiply.cs b/Functions/Multiply.cs index cbfb8e8..e433515 100644 --- a/Functions/Multiply.cs +++ b/Functions/Multiply.cs @@ -8,7 +8,7 @@ namespace SuperBASIC.Functions { float IFunction.Apply(List arguments) { - return arguments[0].GetValue() * arguments[1].GetValue(); + return arguments[0] * arguments[1]; } } } diff --git a/Functions/Print.cs b/Functions/Print.cs index eb359d7..87f7b70 100644 --- a/Functions/Print.cs +++ b/Functions/Print.cs @@ -8,7 +8,7 @@ namespace SuperBASIC.Functions { float IFunction.Apply(List arguments) { - Console.WriteLine(arguments[0].GetValue()); + Console.WriteLine(arguments[0]); return 0f; } }