From 0c5dedb44e9ae23e32666399ea9de05de7225eee Mon Sep 17 00:00:00 2001 From: TudbuT Date: Fri, 15 Nov 2024 19:14:45 +0100 Subject: [PATCH] implement maths for floats --- src/std_fns.rs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/std_fns.rs b/src/std_fns.rs index 49468c7..3a60f75 100644 --- a/src/std_fns.rs +++ b/src/std_fns.rs @@ -268,6 +268,8 @@ pub fn plus(stack: &mut Stack) -> OError { Mega, Long, Int, + Float, + Double, ) .spl(), ); @@ -286,6 +288,8 @@ pub fn minus(stack: &mut Stack) -> OError { Mega, Long, Int, + Float, + Double, ) .spl(), ); @@ -304,6 +308,8 @@ pub fn slash(stack: &mut Stack) -> OError { Mega, Long, Int, + Float, + Double, ) .spl(), ); @@ -322,6 +328,8 @@ pub fn star(stack: &mut Stack) -> OError { Mega, Long, Int, + Float, + Double, ) .spl(), ); @@ -336,7 +344,7 @@ pub fn percent(stack: &mut Stack) -> OError { a, b, rem, - stack.err(ErrorKind::InvalidCall("star".to_owned())), + stack.err(ErrorKind::InvalidCall("percent".to_owned())), Mega, Long, Int,