Fix nearest f32 and f64
This commit is contained in:
@@ -113,7 +113,7 @@ do
|
||||
function nearest.f32(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
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user