UPDATE: Adds DEGREES and RADIANS (#493)

This commit is contained in:
Nicolás Hatcher Andrés
2025-10-30 23:45:29 +01:00
committed by GitHub
parent a768bc5974
commit 6ce4756d55
4 changed files with 19 additions and 1 deletions

View File

@@ -485,6 +485,8 @@ impl Model {
Ok(acc)
});
single_number_fn!(fn_sign, |f| Ok(f64::signum(f)));
single_number_fn!(fn_degrees, |f| Ok(f * (180.0 / PI)));
single_number_fn!(fn_radians, |f| Ok(f * (PI / 180.0)));
pub(crate) fn fn_pi(&mut self, args: &[Node], cell: CellReferenceIndex) -> CalcResult {
if !args.is_empty() {