12 lines
273 B
Plaintext
12 lines
273 B
Plaintext
// #ifdef APP-ANDROID
|
|
import MathFloor from 'kotlin.math.floor';
|
|
// #endif
|
|
|
|
export const floor = (value: number): number => {
|
|
// #ifndef APP-ANDROID
|
|
return Math.floor(value);
|
|
// #endif
|
|
// #ifdef APP-ANDROID
|
|
return Number.from(MathFloor(value.toDouble()));
|
|
// #endif
|
|
} |