Fix nearest f32 and f64

This commit is contained in:
Rerumu 2022-06-26 03:18:09 -04:00
parent 22d447395b
commit 76eb363d35

View File

@ -113,7 +113,7 @@ do
function nearest.f32(num) function nearest.f32(num)
local result = round(num) local result = round(num)
if math_abs(num) % 1 == 0.5 and temp_2 % 2 == 1 then if math_abs(num) % 1 == 0.5 and result % 2 == 1 then
result = result - 1 result = result - 1
end end