/
trilirium
/
Kaffe
Обзор
Документация
Войти
/
trilirium
/
Kaffe
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
test/internal/TypeConversion.java
59 строк
1 KB
Trilirium
Kaffe
10 авг 2026, 17:27
10 авг 2026, 17:27
7c3956b
Код
Авторство
О чём код?
class TypeConversion { public static final int test_1__float_to_int = 1; public static int float_to_int(float a) { return (int)a; } public static final int test_1__double_to_int = 1; public static int double_to_int(double a) { return (int)a; } public static final int test__float_nan_to_int = 0; /* * NB: This must _not_ be final, otherwise the java compiler will optimize * it away. */ public static float mynanf = Float.NaN; public static int float_nan_to_int() { return (int)mynanf; } public static final int test__double_nan_to_int = 0; public static double mynand = Double.NaN; public static int double_nan_to_int() { return (int)mynand; } public static final float test_1__int_to_float = 1.0F; public static final float test_255__int_to_float = 255.0F; public static final float test_50225__int_to_float = 50225.0F; public static float int_to_float(int a) { return (float)a; } public static final double test_1__int_to_double = 1.0; public static final double test_255__int_to_double = 255.0; public static final double test_50225__int_to_double = 50225.0; public static double int_to_double(int a) { return (double)a; } private TypeConversion() { } }