Math static methods are not equivalent to the deprecated Flexscript commands that they replace.
Flexscript command floor has a type signature "num floor(num)", Math class method has a type signature "int Math.floor(double)". It may lead to overflow issues when working with large numbers (such as DateTime values).
This is the code to reproduce this issue:
double n = xxx-xxxxxxxx;
return
[ floor(n), "!=", Math.floor(n) // overflow: xxx-xxxxxxxx, !=, -2147483648
, ceil(n), "!=", Math.ceil(n) // overflow: xxx-xxxxxxxx, !=, -2147483648
, round(n), "==", Math.round(n) // OK
, trunc(n), "!=", Math.trunc(n) // overflow: xxx-xxxxxxxx, !=, -2147483648
];

Math.round works correctly.
Reproducible in FlexSim 25.2.0 Beta build 94 and earlier versions.
This doesn't happen in Javascript, which was probably the inspiration for the Math class:
