mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-15 14:54:09 +02:00
Fixed rounding
This commit is contained in:
parent
3a332a0bcf
commit
d79a7b76b4
1 changed files with 4 additions and 2 deletions
|
@ -65,10 +65,11 @@ namespace System
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
// On X86 this can be inlined to just a few instructions
|
// On X86 this can be inlined to just a few instructions
|
||||||
curValue = Round(curValue);
|
curValue = Round(curValue);
|
||||||
}
|
}
|
||||||
curValue /= power10;
|
curValue /= power10;
|
||||||
|
return curValue;
|
||||||
}
|
}
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
@ -90,10 +91,11 @@ namespace System
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
// On X86 this can be inlined to just a few instructions
|
// On X86 this can be inlined to just a few instructions
|
||||||
curValue = Round(curValue);
|
curValue = Round(curValue);
|
||||||
}
|
}
|
||||||
curValue /= power10;
|
curValue /= power10;
|
||||||
|
return curValue;
|
||||||
}
|
}
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue