slint/tests/cases/expr
Olivier Goffart 9329091c2c
Math.sign: Change behavior to return 1 when 0
This is consistent to the Rust/C++ behavior
Even if this depart from the JS behavior

Also replace the function with a Macro

As discussed in https://github.com/slint-ui/slint/issues/9651#issuecomment-3376318439
2025-10-08 09:12:13 +02:00
..
abs.slint
acos.slint
animation_tick.slint
arithmetic.slint Fix comparison between int and float 2025-06-25 19:54:15 +02:00
asin.slint
atan.slint
atan2.slint
ceil.slint
clamp.slint
comparison.slint compiler: Reject comparison on unsupported types 2025-05-07 11:39:27 +02:00
cos.slint
debug.slint
exp.slint Added Exp and Ln functions to Slint (#8226) 2025-04-25 14:30:38 +02:00
floor.slint
let.slint Add local variables (#8740) 2025-06-26 15:36:49 +02:00
ln.slint Added Exp and Ln functions to Slint (#8226) 2025-04-25 14:30:38 +02:00
log.slint
math.slint
minmax.slint
mod.slint
pow.slint
return.slint
return2.slint
return3.slint Compiler: Fix invalid code gen with return statements 2025-06-18 12:58:59 +02:00
round.slint Fix comparison between int and float 2025-06-25 19:54:15 +02:00
sign.slint Math.sign: Change behavior to return 1 when 0 2025-10-08 09:12:13 +02:00
sin.slint
sqrt.slint
string_concatenation.slint
string_template.slint
tan.slint
to-fixed.slint
to-precision.slint
tr.slint
trigo.slint