floor function
Rounds a number down to the nearest integer.
Example:
print(floor(2.3)); // Output: 2
Implementation
Complex floor(dynamic x) {
if (x is num || x is Complex) {
return Complex(x).floor();
} else {
throw ArgumentError('Input should be either num or Complex');
}
}