Fix nearest f32
and f64
This commit is contained in:
parent
22d447395b
commit
76eb363d35
@ -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
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user