You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
338 B

  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4. namespace SuperBASIC.Functions
  5. {
  6. class Pi : IFunction
  7. {
  8. float IFunction.Apply(List<BasicNumber> arguments)
  9. {
  10. return (float)Math.PI;
  11. }
  12. }
  13. class Euler : IFunction
  14. {
  15. float IFunction.Apply(List<BasicNumber> arguments)
  16. {
  17. return (float)Math.E;
  18. }
  19. }
  20. }