1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-15 14:54:09 +02:00

Fixed rounding

This commit is contained in:
Brian Fiete 2020-04-28 09:57:32 -07:00
parent 3a332a0bcf
commit d79a7b76b4

View file

@ -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;
} }