Browse Source

Simplify the implemented functions

master
Ludovic 'Archivist' Lagouardette 3 years ago
parent
commit
c62a19a605
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      Functions/Multiply.cs
  2. +1
    -1
      Functions/Print.cs

+ 1
- 1
Functions/Multiply.cs View File

@ -8,7 +8,7 @@ namespace SuperBASIC.Functions
{ {
float IFunction.Apply(List<BasicNumber> arguments) float IFunction.Apply(List<BasicNumber> arguments)
{ {
return arguments[0].GetValue() * arguments[1].GetValue();
return arguments[0] * arguments[1];
} }
} }
} }

+ 1
- 1
Functions/Print.cs View File

@ -8,7 +8,7 @@ namespace SuperBASIC.Functions
{ {
float IFunction.Apply(List<BasicNumber> arguments) float IFunction.Apply(List<BasicNumber> arguments)
{ {
Console.WriteLine(arguments[0].GetValue());
Console.WriteLine(arguments[0]);
return 0f; return 0f;
} }
} }

Loading…
Cancel
Save