FIX: Issues with SIGN and EXP

Fixes #563
This commit is contained in:
Nicolás Hatcher
2025-11-19 02:31:41 +01:00
committed by Nicolás Hatcher Andrés
parent 8e15c623dd
commit 7676efca44
4 changed files with 41 additions and 40 deletions

View File

@@ -68,14 +68,14 @@ macro_rules! single_number_fn {
},
// If String, parse to f64 then apply or #VALUE! error
ArrayNode::String(s) => {
let node = match s.parse::<f64>() {
Ok(f) => match $op(f) {
let node = match self.cast_number(&s) {
Some(f) => match $op(f) {
Ok(x) => ArrayNode::Number(x),
Err(Error::DIV) => ArrayNode::Error(Error::DIV),
Err(Error::VALUE) => ArrayNode::Error(Error::VALUE),
Err(e) => ArrayNode::Error(e),
},
Err(_) => ArrayNode::Error(Error::VALUE),
None => ArrayNode::Error(Error::VALUE),
};
data_row.push(node);
}