mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 12:32:20 +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
|
||||
{
|
||||
// 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 /= power10;
|
||||
return curValue;
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
@ -90,10 +91,11 @@ namespace System
|
|||
}
|
||||
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 /= power10;
|
||||
return curValue;
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue